We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -25,9 +25,9 @@ |
||
25 | 25 | </thead> |
26 | 26 | <?php |
27 | 27 | |
28 | -if (! empty($_POST)) { |
|
28 | +if (!empty($_POST)) { |
|
29 | 29 | foreach ($_POST as $key => $value) { |
30 | - if ((! is_string($value) && ! is_numeric($value)) || ! is_string($key)) { |
|
30 | + if ((!is_string($value) && !is_numeric($value)) || !is_string($key)) { |
|
31 | 31 | continue; |
32 | 32 | } |
33 | 33 |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function hasAccess($permission) |
35 | 35 | { |
36 | - if (! in_array($permission, $this->access)) { |
|
36 | + if (!in_array($permission, $this->access)) { |
|
37 | 37 | return false; |
38 | 38 | } |
39 | 39 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | public function hasAccessToAll($permission_array) |
69 | 69 | { |
70 | 70 | foreach ($permission_array as $key => $permission) { |
71 | - if (! in_array($permission, $this->access)) { |
|
71 | + if (!in_array($permission, $this->access)) { |
|
72 | 72 | return false; |
73 | 73 | } |
74 | 74 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function hasAccessOrFail($permission) |
88 | 88 | { |
89 | - if (! in_array($permission, $this->access)) { |
|
89 | + if (!in_array($permission, $this->access)) { |
|
90 | 90 | throw new AccessDeniedException(trans('backpack::crud.unauthorized_access', ['access' => $permission])); |
91 | 91 | } |
92 | 92 |
@@ -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 | } |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | $this->type = $options['type']; |
208 | 208 | $this->label = $options['label']; |
209 | 209 | |
210 | - if (! isset($options['placeholder'])) { |
|
210 | + if (!isset($options['placeholder'])) { |
|
211 | 211 | $this->placeholder = ''; |
212 | 212 | } else { |
213 | 213 | $this->placeholder = $options['placeholder']; |
@@ -225,24 +225,24 @@ discard block |
||
225 | 225 | public function setView() |
226 | 226 | { |
227 | 227 | if (isset($this->options['view_namespace'])) { |
228 | - $this->view = $this->options['view_namespace'] . '.' . $this->type; |
|
228 | + $this->view = $this->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 | } |