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 | } |
@@ -221,16 +221,16 @@ discard block |
||
221 | 221 | |
222 | 222 | public function checkOptionsIntegrity($options) |
223 | 223 | { |
224 | - if (! isset($options['name'])) { |
|
224 | + if (!isset($options['name'])) { |
|
225 | 225 | abort(500, 'Please make sure all your filters have names.'); |
226 | 226 | } |
227 | - if (! isset($options['type'])) { |
|
227 | + if (!isset($options['type'])) { |
|
228 | 228 | abort(500, 'Please make sure all your filters have types.'); |
229 | 229 | } |
230 | - if (! \View::exists('crud::filters.'.$options['type'])) { |
|
230 | + if (!\View::exists('crud::filters.'.$options['type'])) { |
|
231 | 231 | abort(500, 'No filter view named "'.$options['type'].'.blade.php" was found.'); |
232 | 232 | } |
233 | - if (! isset($options['label'])) { |
|
233 | + if (!isset($options['label'])) { |
|
234 | 234 | abort(500, 'Please make sure all your filters have labels.'); |
235 | 235 | } |
236 | 236 | } |
@@ -19,9 +19,9 @@ discard block |
||
19 | 19 | */ |
20 | 20 | public function applySearchTerm($searchTerm) |
21 | 21 | { |
22 | - return $this->query->where(function ($query) use ($searchTerm) { |
|
22 | + return $this->query->where(function($query) use ($searchTerm) { |
|
23 | 23 | foreach ($this->getColumns() as $column) { |
24 | - if (! isset($column['type'])) { |
|
24 | + if (!isset($column['type'])) { |
|
25 | 25 | abort(400, 'Missing column type when trying to apply search term.'); |
26 | 26 | } |
27 | 27 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | case 'select': |
62 | 62 | case 'select_multiple': |
63 | - $query->orWhereHas($column['entity'], function ($q) use ($column, $searchTerm) { |
|
63 | + $query->orWhereHas($column['entity'], function($q) use ($column, $searchTerm) { |
|
64 | 64 | $q->where($column['attribute'], 'like', '%'.$searchTerm.'%'); |
65 | 65 | }); |
66 | 66 | break; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | private function renderCellView($view, $column, $entry) |
173 | 173 | { |
174 | - if (! view()->exists($view)) { |
|
174 | + if (!view()->exists($view)) { |
|
175 | 175 | $view = 'crud::columns.text'; // fallback to text column |
176 | 176 | } |
177 | 177 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $this->executeProcess('mkdir -p public/uploads'); |
54 | 54 | break; |
55 | 55 | case '\\': // windows |
56 | - if (! file_exists('public\uploads')) { |
|
56 | + if (!file_exists('public\uploads')) { |
|
57 | 57 | $this->executeProcess('mkdir public\uploads'); |
58 | 58 | } |
59 | 59 | break; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | <div @include('crud::inc.field_wrapper_attributes') > |
7 | 7 | <label>{!! $field['label'] !!}</label> |
8 | 8 | @include('crud::inc.field_translatable_icon') |
9 | - <?php $entity_model = $crud->getRelationModel($field['entity'], - 1); ?> |
|
9 | + <?php $entity_model = $crud->getRelationModel($field['entity'], - 1); ?> |
|
10 | 10 | <select |
11 | 11 | name="{{ $field['name'] }}" |
12 | 12 | style="width: 100%" |