@@ -90,7 +90,7 @@ |
||
| 90 | 90 | /** |
| 91 | 91 | * Get the services provided by the provider. |
| 92 | 92 | * |
| 93 | - * @return array |
|
| 93 | + * @return string[] |
|
| 94 | 94 | */ |
| 95 | 95 | public function provides() |
| 96 | 96 | { |
@@ -24,19 +24,19 @@ discard block |
||
| 24 | 24 | __DIR__.'/config/config.php', 'laravel-widgets' |
| 25 | 25 | ); |
| 26 | 26 | |
| 27 | - $this->app->bind('arrilot.widget', function () { |
|
| 27 | + $this->app->bind('arrilot.widget', function() { |
|
| 28 | 28 | return new WidgetFactory(new LaravelApplicationWrapper()); |
| 29 | 29 | }); |
| 30 | 30 | |
| 31 | - $this->app->bind('arrilot.async-widget', function () { |
|
| 31 | + $this->app->bind('arrilot.async-widget', function() { |
|
| 32 | 32 | return new AsyncWidgetFactory(new LaravelApplicationWrapper()); |
| 33 | 33 | }); |
| 34 | 34 | |
| 35 | - $this->app->singleton('arrilot.widget-group-collection', function () { |
|
| 35 | + $this->app->singleton('arrilot.widget-group-collection', function() { |
|
| 36 | 36 | return new WidgetGroupCollection(new LaravelApplicationWrapper()); |
| 37 | 37 | }); |
| 38 | 38 | |
| 39 | - $this->app->singleton('command.widget.make', function ($app) { |
|
| 39 | + $this->app->singleton('command.widget.make', function($app) { |
|
| 40 | 40 | return new WidgetMakeCommand($app['files']); |
| 41 | 41 | }); |
| 42 | 42 | |
@@ -65,20 +65,20 @@ discard block |
||
| 65 | 65 | ]; |
| 66 | 66 | |
| 67 | 67 | if (!$this->app->routesAreCached()) { |
| 68 | - $this->app['router']->group($routeConfig, function ($router) { |
|
| 68 | + $this->app['router']->group($routeConfig, function($router) { |
|
| 69 | 69 | $router->get('load-widget', 'WidgetController@showWidget'); |
| 70 | 70 | }); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - Blade::directive('widget', function ($expression) { |
|
| 73 | + Blade::directive('widget', function($expression) { |
|
| 74 | 74 | return "<?php echo app('arrilot.widget')->run{$expression}; ?>"; |
| 75 | 75 | }); |
| 76 | 76 | |
| 77 | - Blade::directive('asyncWidget', function ($expression) { |
|
| 77 | + Blade::directive('asyncWidget', function($expression) { |
|
| 78 | 78 | return "<?php echo app('arrilot.async-widget')->run{$expression}; ?>"; |
| 79 | 79 | }); |
| 80 | 80 | |
| 81 | - Blade::directive('widgetGroup', function ($expression) { |
|
| 81 | + Blade::directive('widgetGroup', function($expression) { |
|
| 82 | 82 | return "<?php echo app('arrilot.widget-group-collection')->group{$expression}->display(); ?>"; |
| 83 | 83 | }); |
| 84 | 84 | } |