We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -71,10 +71,10 @@ |
||
71 | 71 | <ol class="sortable"> |
72 | 72 | <?php |
73 | 73 | $all_entries = collect($entries->all())->sortBy('lft')->keyBy($crud->getModel()->getKeyName()); |
74 | - $root_entries = $all_entries->filter(function ($item) { |
|
74 | + $root_entries = $all_entries->filter(function($item) { |
|
75 | 75 | return $item->parent_id == 0; |
76 | 76 | }); |
77 | - foreach ($root_entries as $key => $entry){ |
|
77 | + foreach ($root_entries as $key => $entry) { |
|
78 | 78 | $root_entries[$key] = tree_element($entry, $key, $all_entries, $crud); |
79 | 79 | } |
80 | 80 | ?> |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | |
158 | 158 | /** |
159 | 159 | * Sets the edit content class. |
160 | - * @param string $editContentClass content class |
|
160 | + * @param string $showContentClass content class |
|
161 | 161 | */ |
162 | 162 | public function setShowContentClass(string $showContentClass) |
163 | 163 | { |
@@ -332,6 +332,9 @@ discard block |
||
332 | 332 | return $this->getShowView(); |
333 | 333 | } |
334 | 334 | |
335 | + /** |
|
336 | + * @param string $view |
|
337 | + */ |
|
335 | 338 | public function setPreviewView($view) |
336 | 339 | { |
337 | 340 | return $this->setShowView($view); |
@@ -342,6 +345,9 @@ discard block |
||
342 | 345 | return $this->getEditView(); |
343 | 346 | } |
344 | 347 | |
348 | + /** |
|
349 | + * @param string $view |
|
350 | + */ |
|
345 | 351 | public function setUpdateView($view) |
346 | 352 | { |
347 | 353 | return $this->setEditView($view); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | * Order results of the query in a custom way. |
63 | 63 | * |
64 | 64 | * @param array $column Column array with all attributes |
65 | - * @param string $column_direction ASC or DESC |
|
65 | + * @param string $columnDirection ASC or DESC |
|
66 | 66 | * |
67 | 67 | * @return \Illuminate\Database\Eloquent\Builder |
68 | 68 | */ |
@@ -68,7 +68,7 @@ |
||
68 | 68 | */ |
69 | 69 | public function customOrderBy($column, $columnDirection = 'asc') |
70 | 70 | { |
71 | - if (! isset($column['orderLogic'])) { |
|
71 | + if (!isset($column['orderLogic'])) { |
|
72 | 72 | return $this->query; |
73 | 73 | } |
74 | 74 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * |
10 | 10 | * @param int $id |
11 | 11 | * |
12 | - * @return Response |
|
12 | + * @return string |
|
13 | 13 | */ |
14 | 14 | public function clone($id) |
15 | 15 | { |
@@ -23,7 +23,6 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * Create duplicates of multiple entries in the datatabase. |
25 | 25 | * |
26 | - * @param int $id |
|
27 | 26 | * |
28 | 27 | * @return Response |
29 | 28 | */ |
@@ -16,7 +16,7 @@ |
||
16 | 16 | $this->crud->hasAccessOrFail('reorder'); |
17 | 17 | $this->crud->setOperation('reorder'); |
18 | 18 | |
19 | - if (! $this->crud->isReorderEnabled()) { |
|
19 | + if (!$this->crud->isReorderEnabled()) { |
|
20 | 20 | abort(403, 'Reorder is disabled.'); |
21 | 21 | } |
22 | 22 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | $this->crud->setOperation('revisions'); |
47 | 47 | |
48 | 48 | $revisionId = \Request::input('revision_id', false); |
49 | - if (! $revisionId) { |
|
49 | + if (!$revisionId) { |
|
50 | 50 | abort(500, 'Can\'t restore revision without revision_id'); |
51 | 51 | } else { |
52 | 52 | $this->crud->restoreRevision($id, $revisionId); // do the update |
@@ -5,7 +5,7 @@ |
||
5 | 5 | |
6 | 6 | <span> |
7 | 7 | <?php |
8 | - $suffix = isset($column['suffix'])?$column['suffix']:'items'; |
|
8 | + $suffix = isset($column['suffix']) ? $column['suffix'] : 'items'; |
|
9 | 9 | |
10 | 10 | // the value should be an array wether or not attribute casting is used |
11 | 11 | if (!is_array($array)) { |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('square_brackets_to_dots')) { |
|
3 | +if (!function_exists('square_brackets_to_dots')) { |
|
4 | 4 | /** |
5 | 5 | * Turns a string from bracket-type array to dot-notation array. |
6 | 6 | * Ex: array[0][property] turns into array.0.property. |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | } |
18 | 18 | } |
19 | 19 | |
20 | -if (! function_exists('is_countable')) { |
|
20 | +if (!function_exists('is_countable')) { |
|
21 | 21 | /** |
22 | 22 | * We need this because is_countable was only introduced in PHP 7.3, |
23 | 23 | * and in PHP 7.2 you should check if count() argument is really countable. |
@@ -5,24 +5,24 @@ |
||
5 | 5 | |
6 | 6 | <span> |
7 | 7 | <?php |
8 | - if ($values !== null) { |
|
9 | - if (is_array($values)) { |
|
10 | - $array_of_values = []; |
|
8 | + if ($values !== null) { |
|
9 | + if (is_array($values)) { |
|
10 | + $array_of_values = []; |
|
11 | 11 | |
12 | - foreach ($values as $key => $value) { |
|
13 | - $array_of_values[] = $column['options'][$value]; |
|
14 | - } |
|
12 | + foreach ($values as $key => $value) { |
|
13 | + $array_of_values[] = $column['options'][$value]; |
|
14 | + } |
|
15 | 15 | |
16 | - if (count($array_of_values) > 1) { |
|
17 | - echo implode(', ', $array_of_values); |
|
18 | - } else { |
|
19 | - echo $array_of_values; |
|
20 | - } |
|
21 | - } else { |
|
22 | - echo $column['options'][$values]; |
|
23 | - } |
|
24 | - } else { |
|
25 | - echo "-"; |
|
26 | - } |
|
27 | - ?> |
|
16 | + if (count($array_of_values) > 1) { |
|
17 | + echo implode(', ', $array_of_values); |
|
18 | + } else { |
|
19 | + echo $array_of_values; |
|
20 | + } |
|
21 | + } else { |
|
22 | + echo $column['options'][$values]; |
|
23 | + } |
|
24 | + } else { |
|
25 | + echo "-"; |
|
26 | + } |
|
27 | + ?> |
|
28 | 28 | </span> |
29 | 29 | \ No newline at end of file |