We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -88,13 +88,13 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function register() |
90 | 90 | { |
91 | - $this->app->bind('CRUD', function ($app) { |
|
91 | + $this->app->bind('CRUD', function($app) { |
|
92 | 92 | return new CRUD($app); |
93 | 93 | }); |
94 | 94 | |
95 | 95 | // load a macro for Route, |
96 | 96 | // for developers to be able to load all routes for a CRUD resource in one line |
97 | - if (! Route::hasMacro('crudResource')) { |
|
97 | + if (!Route::hasMacro('crudResource')) { |
|
98 | 98 | $this->addRouteMacro(); |
99 | 99 | } |
100 | 100 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $this->commands($this->commands); |
106 | 106 | |
107 | 107 | // map the elfinder prefix |
108 | - if (! \Config::get('elfinder.route.prefix')) { |
|
108 | + if (!\Config::get('elfinder.route.prefix')) { |
|
109 | 109 | \Config::set('elfinder.route.prefix', \Config::get('backpack.base.route_prefix').'/elfinder'); |
110 | 110 | } |
111 | 111 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | */ |
119 | 119 | private function addRouteMacro() |
120 | 120 | { |
121 | - Route::macro('crud', function ($router, $name, $controller, array $options = []) { |
|
121 | + Route::macro('crud', function($router, $name, $controller, array $options = []) { |
|
122 | 122 | $groupStack = $router->hasGroupStack() ? $router->getGroupStack()[0]['namespace'].'\\' : 'App\\'; |
123 | 123 | $namespacedController = $groupStack.$controller; |
124 | 124 | $controllerInstance = new $namespacedController; |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | { |
146 | 146 | $crudPubPath = public_path('vendor/backpack/crud'); |
147 | 147 | |
148 | - if (! is_dir($crudPubPath)) { |
|
148 | + if (!is_dir($crudPubPath)) { |
|
149 | 149 | return true; |
150 | 150 | } |
151 | 151 |
@@ -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 | { |
@@ -50,7 +50,6 @@ |
||
50 | 50 | * |
51 | 51 | * @param string $name Name of the current entity (singular). |
52 | 52 | * @param string $controller Name of the current controller. |
53 | - * @param array $options Options for the route (optional). |
|
54 | 53 | */ |
55 | 54 | public function routes($name, $controller) |
56 | 55 | { |