@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | public function findAll(): Collection |
| 71 | 71 | { |
| 72 | - return $this->model->archived()->get()->map(function ($model) { |
|
| 72 | + return $this->model->archived()->get()->map(function($model) { |
|
| 73 | 73 | return $this->managers->findByModel($model); |
| 74 | 74 | }); |
| 75 | 75 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | public function guard($verb): Assistant |
| 101 | 101 | { |
| 102 | - if (! $this->can($verb)) { |
|
| 102 | + if (!$this->can($verb)) { |
|
| 103 | 103 | NotAllowedManagerRoute::notAllowedVerb($verb, $this->manager); |
| 104 | 104 | } |
| 105 | 105 | |
@@ -63,15 +63,15 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | $permission = 'update-page'; |
| 65 | 65 | |
| 66 | - if (in_array($verb, ['index','show'])) { |
|
| 66 | + if (in_array($verb, ['index', 'show'])) { |
|
| 67 | 67 | $permission = 'view-page'; |
| 68 | - } elseif (in_array($verb, ['create','store'])) { |
|
| 68 | + } elseif (in_array($verb, ['create', 'store'])) { |
|
| 69 | 69 | $permission = 'create-page'; |
| 70 | 70 | } elseif (in_array($verb, ['delete'])) { |
| 71 | 71 | $permission = 'delete-page'; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - if (! auth()->guard('chief')->user()->hasPermissionTo($permission)) { |
|
| 74 | + if (!auth()->guard('chief')->user()->hasPermissionTo($permission)) { |
|
| 75 | 75 | throw NotAllowedManagerRoute::notAllowedPermission($permission, $this); |
| 76 | 76 | } |
| 77 | 77 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | public function saveFields(): Manager |
| 104 | 104 | { |
| 105 | 105 | // Store the morph_key upon creation |
| 106 | - if (! $this->model->morph_key) { |
|
| 106 | + if (!$this->model->morph_key) { |
|
| 107 | 107 | $this->model->morph_key = $this->model->morphKey(); |
| 108 | 108 | } |
| 109 | 109 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | if (is_array_empty($translation)) { |
| 143 | 143 | |
| 144 | 144 | // Nullify all values |
| 145 | - $trans[$locale] = array_map(function ($value) { |
|
| 145 | + $trans[$locale] = array_map(function($value) { |
|
| 146 | 146 | return null; |
| 147 | 147 | }, $translation); |
| 148 | 148 | continue; |