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 | } |
@@ -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 |