We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | public function filtersEnabled() |
| 10 | 10 | { |
| 11 | - return ! is_array($this->filters); |
|
| 11 | + return !is_array($this->filters); |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | public function filtersDisabled() |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $this->enableFilters(); |
| 54 | 54 | |
| 55 | 55 | // check if another filter with the same name exists |
| 56 | - if (! isset($options['name'])) { |
|
| 56 | + if (!isset($options['name'])) { |
|
| 57 | 57 | abort(500, 'All your filters need names.'); |
| 58 | 58 | } |
| 59 | 59 | if ($this->filters->contains('name', $options['name'])) { |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | public function removeFilter($name) |
| 139 | 139 | { |
| 140 | - $this->filters = $this->filters->reject(function ($filter) use ($name) { |
|
| 140 | + $this->filters = $this->filters->reject(function($filter) use ($name) { |
|
| 141 | 141 | return $filter->name == $name; |
| 142 | 142 | }); |
| 143 | 143 | } |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | $this->type = $options['type']; |
| 209 | 209 | $this->label = $options['label']; |
| 210 | 210 | |
| 211 | - if (! isset($options['placeholder'])) { |
|
| 211 | + if (!isset($options['placeholder'])) { |
|
| 212 | 212 | $this->placeholder = ''; |
| 213 | 213 | } else { |
| 214 | 214 | $this->placeholder = $options['placeholder']; |
@@ -225,24 +225,24 @@ discard block |
||
| 225 | 225 | public function setView($options) |
| 226 | 226 | { |
| 227 | 227 | if (isset($options['view_namespace'])) { |
| 228 | - $this->view = $options['view_namespace'] . '.' . $this->type; |
|
| 228 | + $this->view = $options['view_namespace'].'.'.$this->type; |
|
| 229 | 229 | } else { |
| 230 | - $this->view = 'crud::filters.' . $this->type; |
|
| 230 | + $this->view = 'crud::filters.'.$this->type; |
|
| 231 | 231 | } |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | public function checkOptionsIntegrity($options) |
| 235 | 235 | { |
| 236 | - if (! isset($options['name'])) { |
|
| 236 | + if (!isset($options['name'])) { |
|
| 237 | 237 | abort(500, 'Please make sure all your filters have names.'); |
| 238 | 238 | } |
| 239 | - if (! isset($options['type'])) { |
|
| 239 | + if (!isset($options['type'])) { |
|
| 240 | 240 | abort(500, 'Please make sure all your filters have types.'); |
| 241 | 241 | } |
| 242 | - if (! \View::exists('crud::filters.'.$options['type'])) { |
|
| 242 | + if (!\View::exists('crud::filters.'.$options['type'])) { |
|
| 243 | 243 | abort(500, 'No filter view named "'.$options['type'].'.blade.php" was found.'); |
| 244 | 244 | } |
| 245 | - if (! isset($options['label'])) { |
|
| 245 | + if (!isset($options['label'])) { |
|
| 246 | 246 | abort(500, 'Please make sure all your filters have labels.'); |
| 247 | 247 | } |
| 248 | 248 | } |