From 3ec9b72b0be8c1a5188465b54f232285838f40d2 Mon Sep 17 00:00:00 2001 From: nanderson11 Date: Mon, 3 Jun 2024 16:11:37 +0000 Subject: [PATCH] Fix styling --- app/Http/Controllers/EmployeeController.php | 4 ++-- app/Http/Controllers/GenericController.php | 2 -- app/Models/Employee.php | 10 +++++----- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/Http/Controllers/EmployeeController.php b/app/Http/Controllers/EmployeeController.php index 20bc6b9..b4a08f4 100644 --- a/app/Http/Controllers/EmployeeController.php +++ b/app/Http/Controllers/EmployeeController.php @@ -2,10 +2,10 @@ namespace App\Http\Controllers; -use Illuminate\View\View; - use App\Models\Employee; +use Illuminate\View\View; + class EmployeeController extends GenericController { public const METADATA = [ 'pluralName' => 'employees', diff --git a/app/Http/Controllers/GenericController.php b/app/Http/Controllers/GenericController.php index 9e25017..7507c5a 100644 --- a/app/Http/Controllers/GenericController.php +++ b/app/Http/Controllers/GenericController.php @@ -3,8 +3,6 @@ namespace App\Http\Controllers; use Illuminate\Routing\Controller as BaseController; -use Illuminate\View\View; class GenericController extends BaseController { - } diff --git a/app/Models/Employee.php b/app/Models/Employee.php index d66da80..af226a2 100644 --- a/app/Models/Employee.php +++ b/app/Models/Employee.php @@ -2,8 +2,8 @@ namespace App\Models; -use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Casts\Attribute; +use Illuminate\Database\Eloquent\Model; class Employee extends Model { /** @@ -28,8 +28,8 @@ public function manager() { } protected function name(): Attribute { - return Attribute::make( - get: fn (mixed $value, array $attributes) => $attributes['firstName'].' '.$attributes['lastName'], - ); - } + return Attribute::make( + get: fn (mixed $value, array $attributes) => $attributes['firstName'].' '.$attributes['lastName'], + ); + } }