From 814f69083ff2dd9109ef2064ed3a7d482c258c03 Mon Sep 17 00:00:00 2001 From: gnovaro Date: Fri, 1 Nov 2024 14:54:37 +0000 Subject: [PATCH] PHP Linting (Pint) --- app/Models/Supplier.php | 1 - app/Repositories/SupplierRepository.php | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/Models/Supplier.php b/app/Models/Supplier.php index d6e451c3..8a3448f9 100755 --- a/app/Models/Supplier.php +++ b/app/Models/Supplier.php @@ -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); diff --git a/app/Repositories/SupplierRepository.php b/app/Repositories/SupplierRepository.php index 5f5b2866..7674a4ac 100755 --- a/app/Repositories/SupplierRepository.php +++ b/app/Repositories/SupplierRepository.php @@ -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();