Skip to content

Commit

Permalink
PHP Linting (Pint)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnovaro authored and github-actions[bot] committed Nov 1, 2024
1 parent 38ed59a commit 814f690
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/Models/Supplier.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class Supplier extends Model
#[OAT\Property(type: 'string', example: 'password123')]
protected ?string $order_password = null;


public function company()
{
return $this->belongsTo(Company::class);
Expand Down
10 changes: 5 additions & 5 deletions app/Repositories/SupplierRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ public function save(array $data): ?Supplier
$supplier->province = (! empty($data['province'])) ? $data['province'] : null;
$supplier->street = (! empty($data['street'])) ? $data['street'] : null;
$supplier->zipcode = (! empty($data['zipcode'])) ? $data['zipcode'] : null;
$supplier->notes = !empty($data['notes']) ? $data['notes'] : null;
$supplier->account_number = !empty($data['account_number']) ? $data['account_number'] : null;
$supplier->order_url = !empty($data['order_url']) ? $data['order_url'] : null;
$supplier->order_user = !empty($data['order_user']) ? $data['order_user'] : null;
$supplier->order_password = !empty($data['order_password']) ? $data['order_password'] : null;
$supplier->notes = ! empty($data['notes']) ? $data['notes'] : null;
$supplier->account_number = ! empty($data['account_number']) ? $data['account_number'] : null;
$supplier->order_url = ! empty($data['order_url']) ? $data['order_url'] : null;
$supplier->order_user = ! empty($data['order_user']) ? $data['order_user'] : null;
$supplier->order_password = ! empty($data['order_password']) ? $data['order_password'] : null;
$supplier->updated_at = now();
$supplier->save();

Expand Down

0 comments on commit 814f690

Please sign in to comment.