Completed
Push — master ( 97b6cf...a1007a )
by Nekrasov
02:52
created
src/ServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -21,19 +21,19 @@  discard block
 block discarded – undo
21 21
             __DIR__.'/config/config.php', 'laravel-widgets'
22 22
         );
23 23
 
24
-        $this->app->bind('arrilot.widget', function () {
24
+        $this->app->bind('arrilot.widget', function() {
25 25
             return new WidgetFactory(new LaravelApplicationWrapper());
26 26
         });
27 27
 
28
-        $this->app->bind('arrilot.async-widget', function () {
28
+        $this->app->bind('arrilot.async-widget', function() {
29 29
             return new AsyncWidgetFactory(new LaravelApplicationWrapper());
30 30
         });
31 31
 
32
-        $this->app->singleton('arrilot.widget-group-collection', function () {
32
+        $this->app->singleton('arrilot.widget-group-collection', function() {
33 33
             return new WidgetGroupCollection(new LaravelApplicationWrapper());
34 34
         });
35 35
 
36
-        $this->app->singleton('command.widget.make', function ($app) {
36
+        $this->app->singleton('command.widget.make', function($app) {
37 37
             return new WidgetMakeCommand($app['files']);
38 38
         });
39 39
 
@@ -62,20 +62,20 @@  discard block
 block discarded – undo
62 62
         ];
63 63
 
64 64
         if (!$this->app->routesAreCached()) {
65
-            $this->app['router']->group($routeConfig, function ($router) {
65
+            $this->app['router']->group($routeConfig, function($router) {
66 66
                 $router->get('load-widget', 'WidgetController@showWidget');
67 67
             });
68 68
         }
69 69
 
70
-        Blade::directive('widget', function ($expression) {
70
+        Blade::directive('widget', function($expression) {
71 71
             return "<?php echo app('arrilot.widget')->run($expression); ?>";
72 72
         });
73 73
 
74
-        Blade::directive('asyncWidget', function ($expression) {
74
+        Blade::directive('asyncWidget', function($expression) {
75 75
             return "<?php echo app('arrilot.async-widget')->run($expression); ?>";
76 76
         });
77 77
 
78
-        Blade::directive('widgetGroup', function ($expression) {
78
+        Blade::directive('widgetGroup', function($expression) {
79 79
             return "<?php echo app('arrilot.widget-group-collection')->group($expression)->display(); ?>";
80 80
         });
81 81
     }
Please login to merge, or discard this patch.