Completed
Push — master ( acb755...440e5c )
by Nekrasov
02:13
created
src/ServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,19 +24,19 @@  discard block
 block discarded – undo
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
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         ];
65 65
 
66 66
         if (!$this->app->routesAreCached()) {
67
-            $this->app['router']->group($routeConfig, function ($router) {
67
+            $this->app['router']->group($routeConfig, function($router) {
68 68
                 $router->get('load-widget', 'WidgetController@showWidget');
69 69
             });
70 70
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     protected function registerBladeDirective($name, $expression)
95 95
     {
96
-        Blade::extend(function ($view) use ($name, $expression) {
96
+        Blade::extend(function($view) use ($name, $expression) {
97 97
             $pattern = $this->createMatcher($name);
98 98
 
99 99
             return preg_replace($pattern, $expression, $view);
Please login to merge, or discard this patch.