We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -59,18 +59,18 @@ discard block |
||
59 | 59 | public function register() |
60 | 60 | { |
61 | 61 | // Bind the CrudPanel object to Laravel's service container |
62 | - $this->app->singleton('crud', function ($app) { |
|
62 | + $this->app->singleton('crud', function($app) { |
|
63 | 63 | return new CrudPanel($app); |
64 | 64 | }); |
65 | 65 | |
66 | 66 | // Bind the widgets collection object to Laravel's service container |
67 | - $this->app->singleton('widgets', function ($app) { |
|
67 | + $this->app->singleton('widgets', function($app) { |
|
68 | 68 | return new Collection(); |
69 | 69 | }); |
70 | 70 | |
71 | 71 | // load a macro for Route, |
72 | 72 | // helps developers load all routes for a CRUD resource in one line |
73 | - if (! Route::hasMacro('crud')) { |
|
73 | + if (!Route::hasMacro('crud')) { |
|
74 | 74 | $this->addRouteMacro(); |
75 | 75 | } |
76 | 76 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $middleware_key = config('backpack.base.middleware_key'); |
87 | 87 | $middleware_class = config('backpack.base.middleware_class'); |
88 | 88 | |
89 | - if (! is_array($middleware_class)) { |
|
89 | + if (!is_array($middleware_class)) { |
|
90 | 90 | $router->pushMiddlewareToGroup($middleware_key, $middleware_class); |
91 | 91 | |
92 | 92 | return; |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | */ |
185 | 185 | private function addRouteMacro() |
186 | 186 | { |
187 | - Route::macro('crud', function ($name, $controller) { |
|
187 | + Route::macro('crud', function($name, $controller) { |
|
188 | 188 | // put together the route name prefix, |
189 | 189 | // as passed to the Route::group() statements |
190 | 190 | $routeName = ''; |
@@ -289,11 +289,11 @@ discard block |
||
289 | 289 | public function registerBladeDirectives() |
290 | 290 | { |
291 | 291 | // CRUD Load Once |
292 | - Blade::directive('crudLoadOnce', function ($tag) { |
|
292 | + Blade::directive('crudLoadOnce', function($tag) { |
|
293 | 293 | return "<?php if (CRUD::addLoadedFieldType($tag)) { ?>"; |
294 | 294 | }); |
295 | 295 | |
296 | - Blade::directive('endCrudLoadOnce', function () { |
|
296 | + Blade::directive('endCrudLoadOnce', function() { |
|
297 | 297 | return '<?php } ?>'; |
298 | 298 | }); |
299 | 299 | } |