We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | /** |
95 | 95 | * Move the most recently added column after the given target column. |
96 | 96 | * |
97 | - * @param string|array $targetColumn The target column name or array. |
|
97 | + * @param string $targetColumn The target column name or array. |
|
98 | 98 | */ |
99 | 99 | public function afterColumn($targetColumn) |
100 | 100 | { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * Move the most recently added column before the given target column. |
106 | 106 | * |
107 | - * @param string|array $targetColumn The target column name or array. |
|
107 | + * @param string $targetColumn The target column name or array. |
|
108 | 108 | */ |
109 | 109 | public function beforeColumn($targetColumn) |
110 | 110 | { |
@@ -167,18 +167,18 @@ |
||
167 | 167 | { |
168 | 168 | foreach ($modifications as $key => $newValue) { |
169 | 169 | switch (strtolower($form)) { |
170 | - case 'create': |
|
170 | + case 'create': |
|
171 | 171 | $this->create_fields[$field][$key] = $newValue; |
172 | - break; |
|
172 | + break; |
|
173 | 173 | |
174 | - case 'update': |
|
174 | + case 'update': |
|
175 | 175 | $this->update_fields[$field][$key] = $newValue; |
176 | - break; |
|
176 | + break; |
|
177 | 177 | |
178 | - default: |
|
178 | + default: |
|
179 | 179 | $this->create_fields[$field][$key] = $newValue; |
180 | - $this->update_fields[$field][$key] = $newValue; |
|
181 | - break; |
|
180 | + $this->update_fields[$field][$key] = $newValue; |
|
181 | + break; |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | } |
@@ -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'])) { |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | { |
140 | 140 | $filter = $this->filters->firstWhere('name', $name); |
141 | 141 | |
142 | - if (! $filter) { |
|
142 | + if (!$filter) { |
|
143 | 143 | abort(500, 'CRUD Filter "'.$name.'" not found. Please check the filter exists before you modify it.'); |
144 | 144 | } |
145 | 145 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | |
155 | 155 | public function removeFilter($name) |
156 | 156 | { |
157 | - $this->filters = $this->filters->reject(function ($filter) use ($name) { |
|
157 | + $this->filters = $this->filters->reject(function($filter) use ($name) { |
|
158 | 158 | return $filter->name == $name; |
159 | 159 | }); |
160 | 160 | } |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | $this->type = $options['type']; |
225 | 225 | $this->label = $options['label']; |
226 | 226 | |
227 | - if (! isset($options['placeholder'])) { |
|
227 | + if (!isset($options['placeholder'])) { |
|
228 | 228 | $this->placeholder = ''; |
229 | 229 | } else { |
230 | 230 | $this->placeholder = $options['placeholder']; |
@@ -241,16 +241,16 @@ discard block |
||
241 | 241 | |
242 | 242 | public function checkOptionsIntegrity($options) |
243 | 243 | { |
244 | - if (! isset($options['name'])) { |
|
244 | + if (!isset($options['name'])) { |
|
245 | 245 | abort(500, 'Please make sure all your filters have names.'); |
246 | 246 | } |
247 | - if (! isset($options['type'])) { |
|
247 | + if (!isset($options['type'])) { |
|
248 | 248 | abort(500, 'Please make sure all your filters have types.'); |
249 | 249 | } |
250 | - if (! \View::exists('crud::filters.'.$options['type'])) { |
|
250 | + if (!\View::exists('crud::filters.'.$options['type'])) { |
|
251 | 251 | abort(500, 'No filter view named "'.$options['type'].'.blade.php" was found.'); |
252 | 252 | } |
253 | - if (! isset($options['label'])) { |
|
253 | + if (!isset($options['label'])) { |
|
254 | 254 | abort(500, 'Please make sure all your filters have labels.'); |
255 | 255 | } |
256 | 256 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | { |
98 | 98 | $button = $this->buttons()->firstWhere('name', $name); |
99 | 99 | |
100 | - if (! $button) { |
|
100 | + if (!$button) { |
|
101 | 101 | abort(500, 'CRUD Button "'.$name.'" not found. Please check the button exists before you modify it.'); |
102 | 102 | } |
103 | 103 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | */ |
119 | 119 | public function removeButton($name, $stack = null) |
120 | 120 | { |
121 | - $this->buttons = $this->buttons->reject(function ($button) use ($name, $stack) { |
|
121 | + $this->buttons = $this->buttons->reject(function($button) use ($name, $stack) { |
|
122 | 122 | return $stack == null ? $button->name == $name : ($button->stack == $stack) && ($button->name == $name); |
123 | 123 | }); |
124 | 124 | } |
@@ -130,14 +130,14 @@ discard block |
||
130 | 130 | |
131 | 131 | public function removeAllButtonsFromStack($stack) |
132 | 132 | { |
133 | - $this->buttons = $this->buttons->reject(function ($button) use ($stack) { |
|
133 | + $this->buttons = $this->buttons->reject(function($button) use ($stack) { |
|
134 | 134 | return $button->stack == $stack; |
135 | 135 | }); |
136 | 136 | } |
137 | 137 | |
138 | 138 | public function removeButtonFromStack($name, $stack) |
139 | 139 | { |
140 | - $this->buttons = $this->buttons->reject(function ($button) use ($name, $stack) { |
|
140 | + $this->buttons = $this->buttons->reject(function($button) use ($name, $stack) { |
|
141 | 141 | return $button->name == $name && $button->stack == $stack; |
142 | 142 | }); |
143 | 143 | } |