We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | <!-- elFinder JS (REQUIRED) --> |
15 | 15 | <script src="<?= asset($dir.'/js/elfinder.min.js') ?>"></script> |
16 | 16 | |
17 | - <?php if($locale){ ?> |
|
17 | + <?php if ($locale) { ?> |
|
18 | 18 | <!-- elFinder translation (OPTIONAL) --> |
19 | 19 | <script src="<?= asset($dir."/js/i18n/elfinder.$locale.js") ?>"></script> |
20 | 20 | <?php } ?> |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $().ready(function() { |
27 | 27 | $('#elfinder').elfinder({ |
28 | 28 | // set your elFinder options here |
29 | - <?php if($locale){ ?> |
|
29 | + <?php if ($locale) { ?> |
|
30 | 30 | lang: '<?= $locale ?>', // locale |
31 | 31 | <?php } ?> |
32 | 32 | customData: { |
@@ -68,10 +68,10 @@ |
||
68 | 68 | <ol class="sortable mt-0"> |
69 | 69 | <?php |
70 | 70 | $all_entries = collect($entries->all())->sortBy('lft')->keyBy($crud->getModel()->getKeyName()); |
71 | - $root_entries = $all_entries->filter(function ($item) { |
|
71 | + $root_entries = $all_entries->filter(function($item) { |
|
72 | 72 | return $item->parent_id == 0; |
73 | 73 | }); |
74 | - foreach ($root_entries as $key => $entry){ |
|
74 | + foreach ($root_entries as $key => $entry) { |
|
75 | 75 | $root_entries[$key] = tree_element($entry, $key, $all_entries, $crud); |
76 | 76 | } |
77 | 77 | ?> |
@@ -7,14 +7,14 @@ |
||
7 | 7 | |
8 | 8 | <div class="form-group backpack-filter mb-0"> |
9 | 9 | <?php |
10 | - $from = ''; |
|
11 | - $to = ''; |
|
12 | - if($filter->currentValue) { |
|
13 | - $range = (array)json_decode($filter->currentValue); |
|
14 | - $from = $range['from']; |
|
15 | - $to = $range['to']; |
|
16 | - } |
|
17 | - ?> |
|
10 | + $from = ''; |
|
11 | + $to = ''; |
|
12 | + if($filter->currentValue) { |
|
13 | + $range = (array)json_decode($filter->currentValue); |
|
14 | + $from = $range['from']; |
|
15 | + $to = $range['to']; |
|
16 | + } |
|
17 | + ?> |
|
18 | 18 | <div class="input-group"> |
19 | 19 | <input class="form-control pull-right from" |
20 | 20 | type="number" |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\app\Http\Controllers\Operations; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\Route; |
|
6 | 5 | use Illuminate\Http\Request as StoreRequest; |
6 | +use Illuminate\Support\Facades\Route; |
|
7 | 7 | |
8 | 8 | trait CreateOperation |
9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\app\Http\Controllers\Operations; |
4 | 4 | |
5 | -use Illuminate\Support\Facades\Route; |
|
6 | 5 | use Illuminate\Http\Request as UpdateRequest; |
6 | +use Illuminate\Support\Facades\Route; |
|
7 | 7 | |
8 | 8 | trait UpdateOperation |
9 | 9 | { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | /** |
10 | 10 | * Define which routes are needed for this operation. |
11 | 11 | * |
12 | - * @param string $name Name of the current entity (singular). Used as first URL segment. |
|
13 | 12 | * @param string $routeName Prefix of the route name. |
14 | 13 | * @param string $controller Name of the current CrudController. |
15 | 14 | */ |
@@ -24,7 +24,6 @@ |
||
24 | 24 | /** |
25 | 25 | * Create duplicates of multiple entries in the datatabase. |
26 | 26 | * |
27 | - * @param int $id |
|
28 | 27 | * |
29 | 28 | * @return Response |
30 | 29 | */ |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * |
27 | 27 | * @param int $id |
28 | 28 | * |
29 | - * @return Response |
|
29 | + * @return string |
|
30 | 30 | */ |
31 | 31 | public function clone($id) |
32 | 32 | { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | /** |
10 | 10 | * Define which routes are needed for this operation. |
11 | 11 | * |
12 | - * @param string $name Name of the current entity (singular). Used as first URL segment. |
|
13 | 12 | * @param string $routeName Prefix of the route name. |
14 | 13 | * @param string $controller Name of the current CrudController. |
15 | 14 | */ |
@@ -21,13 +21,13 @@ |
||
21 | 21 | |
22 | 22 | public function __construct() |
23 | 23 | { |
24 | - if (! $this->crud) { |
|
24 | + if (!$this->crud) { |
|
25 | 25 | // make a new CrudPanel object, from the one stored in Laravel's service container |
26 | 26 | $this->crud = app()->make('crud'); |
27 | 27 | |
28 | 28 | // call the setup function inside this closure to also have the request there |
29 | 29 | // this way, developers can use things stored in session (auth variables, etc) |
30 | - $this->middleware(function ($request, $next) { |
|
30 | + $this->middleware(function($request, $next) { |
|
31 | 31 | $this->request = $request; |
32 | 32 | $this->crud->request = $request; |
33 | 33 | $this->setup(); |