@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | */ |
39 | 39 | private function customController(Model $modelAbstractor) |
40 | 40 | { |
41 | - if (! $this instanceof CustomController) { //Avoid infinite recursion |
|
42 | - if (array_key_exists('controller', $config = $modelAbstractor->getConfig()) && (! empty($config['controller']))) { |
|
41 | + if (!$this instanceof CustomController) { //Avoid infinite recursion |
|
42 | + if (array_key_exists('controller', $config = $modelAbstractor->getConfig()) && (!empty($config['controller']))) { |
|
43 | 43 | /** @var CustomController $controller */ |
44 | 44 | $controller = App::make($config['controller']); |
45 | 45 | $controller->setAbstractor($modelAbstractor); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | $this->authorizeMethod($modelAbstractor, 'adminIndex'); |
64 | 64 | |
65 | - if (! empty($customController = $this->customController($modelAbstractor))) { |
|
65 | + if (!empty($customController = $this->customController($modelAbstractor))) { |
|
66 | 66 | return $customController->index($request, $model); |
67 | 67 | } |
68 | 68 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | $this->authorizeMethod($modelAbstractor, 'adminCreate'); |
104 | 104 | |
105 | - if (! empty($customController = $this->customController($modelAbstractor))) { |
|
105 | + if (!empty($customController = $this->customController($modelAbstractor))) { |
|
106 | 106 | return $customController->create($model); |
107 | 107 | } |
108 | 108 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | $this->authorizeMethod($modelAbstractor, 'adminStore'); |
130 | 130 | |
131 | - if (! empty($customController = $this->customController($modelAbstractor))) { |
|
131 | + if (!empty($customController = $this->customController($modelAbstractor))) { |
|
132 | 132 | return $customController->store($request, $model); |
133 | 133 | } |
134 | 134 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | |
163 | 163 | $this->authorizeMethod($modelAbstractor, 'adminShow'); |
164 | 164 | |
165 | - if (! empty($customController = $this->customController($modelAbstractor))) { |
|
165 | + if (!empty($customController = $this->customController($modelAbstractor))) { |
|
166 | 166 | return $customController->show($model, $id); |
167 | 167 | } |
168 | 168 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | |
190 | 190 | $this->authorizeMethod($modelAbstractor, 'adminEdit'); |
191 | 191 | |
192 | - if (! empty($customController = $this->customController($modelAbstractor))) { |
|
192 | + if (!empty($customController = $this->customController($modelAbstractor))) { |
|
193 | 193 | return $customController->edit($model, $id); |
194 | 194 | } |
195 | 195 | |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | |
220 | 220 | $this->authorizeMethod($modelAbstractor, 'adminUpdate'); |
221 | 221 | |
222 | - if (! empty($customController = $this->customController($modelAbstractor))) { |
|
222 | + if (!empty($customController = $this->customController($modelAbstractor))) { |
|
223 | 223 | return $customController->update($request, $model, $id); |
224 | 224 | } |
225 | 225 | |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | |
255 | 255 | $this->authorizeMethod($modelAbstractor, 'adminDestroy'); |
256 | 256 | |
257 | - if (! empty($customController = $this->customController($modelAbstractor))) { |
|
257 | + if (!empty($customController = $this->customController($modelAbstractor))) { |
|
258 | 258 | return $customController->destroy($request, $model, $id); |
259 | 259 | } |
260 | 260 |