We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | */ |
12 | 12 | public function filtersEnabled() |
13 | 13 | { |
14 | - return ! is_array($this->filters); |
|
14 | + return !is_array($this->filters); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $this->enableFilters(); |
60 | 60 | |
61 | 61 | // check if another filter with the same name exists |
62 | - if (! isset($options['name'])) { |
|
62 | + if (!isset($options['name'])) { |
|
63 | 63 | abort(500, 'All your filters need names.'); |
64 | 64 | } |
65 | 65 | if ($this->filters->contains('name', $options['name'])) { |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | */ |
156 | 156 | public function getFilter($name) |
157 | 157 | { |
158 | - if($this->filtersEnabled()){ |
|
158 | + if ($this->filtersEnabled()) { |
|
159 | 159 | return $this->filters()->firstWhere('name', $name); |
160 | 160 | } |
161 | 161 | } |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | { |
185 | 185 | $filter = $this->filters->firstWhere('name', $name); |
186 | 186 | |
187 | - if (! $filter) { |
|
187 | + if (!$filter) { |
|
188 | 188 | abort(500, 'CRUD Filter "'.$name.'" not found. Please check the filter exists before you modify it.'); |
189 | 189 | } |
190 | 190 | |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | |
200 | 200 | public function removeFilter($name) |
201 | 201 | { |
202 | - $this->filters = $this->filters->reject(function ($filter) use ($name) { |
|
202 | + $this->filters = $this->filters->reject(function($filter) use ($name) { |
|
203 | 203 | return $filter->name == $name; |
204 | 204 | }); |
205 | 205 | } |
@@ -283,16 +283,16 @@ discard block |
||
283 | 283 | |
284 | 284 | public function checkOptionsIntegrity($options) |
285 | 285 | { |
286 | - if (! isset($options['name'])) { |
|
286 | + if (!isset($options['name'])) { |
|
287 | 287 | abort(500, 'Please make sure all your filters have names.'); |
288 | 288 | } |
289 | - if (! isset($options['type'])) { |
|
289 | + if (!isset($options['type'])) { |
|
290 | 290 | abort(500, 'Please make sure all your filters have types.'); |
291 | 291 | } |
292 | - if (! \View::exists('crud::filters.'.$options['type'])) { |
|
292 | + if (!\View::exists('crud::filters.'.$options['type'])) { |
|
293 | 293 | abort(500, 'No filter view named "'.$options['type'].'.blade.php" was found.'); |
294 | 294 | } |
295 | - if (! isset($options['label'])) { |
|
295 | + if (!isset($options['label'])) { |
|
296 | 296 | abort(500, 'Please make sure all your filters have labels.'); |
297 | 297 | } |
298 | 298 | } |