@@ -57,7 +57,7 @@ |
||
57 | 57 | * |
58 | 58 | * @return bool |
59 | 59 | */ |
60 | - public function restDelete($user, /** @scrutinizer ignore-unused */$entity) |
|
60 | + public function restDelete($user, /** @scrutinizer ignore-unused */$entity) |
|
61 | 61 | { |
62 | 62 | return $this->defaultRestAccess($user); |
63 | 63 | } |
@@ -31,18 +31,18 @@ |
||
31 | 31 | { |
32 | 32 | if ($sort = $this->input('sort')) { |
33 | 33 | $fields = explode(',', $sort); |
34 | - $orderBy = []; |
|
34 | + $orderBy = [ ]; |
|
35 | 35 | |
36 | 36 | foreach ($fields as $field) { |
37 | 37 | if (empty($field)) continue; |
38 | 38 | |
39 | 39 | $direction = 'ASC'; |
40 | - if ($field[0] === '-') { |
|
40 | + if ($field[ 0 ] === '-') { |
|
41 | 41 | $field = substr($field, 1); |
42 | 42 | $direction = 'DESC'; |
43 | 43 | } |
44 | 44 | |
45 | - $orderBy[$field] = $direction; |
|
45 | + $orderBy[ $field ] = $direction; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | return $orderBy; |
@@ -60,7 +60,9 @@ |
||
60 | 60 | $orderBy = []; |
61 | 61 | |
62 | 62 | foreach ($fields as $field) { |
63 | - if (empty($field)) continue; |
|
63 | + if (empty($field)) { |
|
64 | + continue; |
|
65 | + } |
|
64 | 66 | |
65 | 67 | $direction = 'ASC'; |
66 | 68 | if ($field[0] === '-') { |
@@ -93,7 +93,7 @@ |
||
93 | 93 | */ |
94 | 94 | protected function getFilterable() |
95 | 95 | { |
96 | - return []; |
|
96 | + return [ ]; |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |