We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | { |
42 | 42 | $id = $this->getCurrentEntryId(); |
43 | 43 | |
44 | - if (! $id) { |
|
44 | + if (!$id) { |
|
45 | 45 | return false; |
46 | 46 | } |
47 | 47 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function getEntry($id) |
59 | 59 | { |
60 | - if (! $this->entry) { |
|
60 | + if (!$this->entry) { |
|
61 | 61 | $this->entry = $this->model->findOrFail($id); |
62 | 62 | $this->entry = $this->entry->withFakes(); |
63 | 63 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | public function hasUploadFields($form, $id = false) |
133 | 133 | { |
134 | 134 | $fields = $this->getFields($form, $id); |
135 | - $upload_fields = array_where($fields, function ($value, $key) { |
|
135 | + $upload_fields = array_where($fields, function($value, $key) { |
|
136 | 136 | return isset($value['upload']) && $value['upload'] == true; |
137 | 137 | }); |
138 | 138 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | { |
193 | 193 | // If the default Page Length isn't in the menu's values, Add it the beginnin and resort all to show a croissant list. |
194 | 194 | // assume both array are the same lenght. |
195 | - if (! in_array($this->getDefaultPageLength(), $this->page_length_menu[0])) { |
|
195 | + if (!in_array($this->getDefaultPageLength(), $this->page_length_menu[0])) { |
|
196 | 196 | // Loop through 2 arrays of prop. page_length_menu |
197 | 197 | foreach ($this->page_length_menu as $key => &$page_length_choices) { |
198 | 198 | // This is a condition that should be always true. |
@@ -223,9 +223,9 @@ discard block |
||
223 | 223 | public function getPageLengthMenu() |
224 | 224 | { |
225 | 225 | // if already set, use that |
226 | - if (! $this->page_length_menu) { |
|
226 | + if (!$this->page_length_menu) { |
|
227 | 227 | // try to get the menu settings from the config file |
228 | - if (! $this->page_length_menu = config('backpack.crud.page_length_menu')) { |
|
228 | + if (!$this->page_length_menu = config('backpack.crud.page_length_menu')) { |
|
229 | 229 | // otherwise set a sensible default |
230 | 230 | $this->page_length_menu = [[10, 25, 50, 100, -1], [10, 25, 50, 100, 'backpack::crud.all']]; |
231 | 231 | } |
@@ -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'])) { |
228 | - $this->view = $this->options['view'] . '.' . $this->type; |
|
228 | + $this->view = $this->options['view'].'.'.$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 | } |