Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
nanderson11 authored and github-actions[bot] committed Jun 3, 2024
1 parent 9e1814b commit 3ec9b72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/EmployeeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 0 additions & 2 deletions app/Http/Controllers/GenericController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace App\Http\Controllers;

use Illuminate\Routing\Controller as BaseController;
use Illuminate\View\View;

class GenericController extends BaseController {

}
10 changes: 5 additions & 5 deletions app/Models/Employee.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand All @@ -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'],
);
}
}

0 comments on commit 3ec9b72

Please sign in to comment.