Completed
Pull Request — master (#39)
by Arjay
05:24
created
src/ServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,15 +24,15 @@  discard block
 block discarded – undo
24 24
             __DIR__.'/config/config.php', 'laravel-widgets'
25 25
         );
26 26
 
27
-        $this->app->singleton('arrilot.widget', function () {
27
+        $this->app->singleton('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('command.widget.make', function ($app) {
35
+        $this->app->singleton('command.widget.make', function($app) {
36 36
             return new WidgetMakeCommand($app['files']);
37 37
         });
38 38
 
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
             'prefix'    => 'arrilot',
59 59
         ];
60 60
 
61
-        if (! $this->app->routesAreCached()) {
62
-            $this->app['router']->group($routeConfig, function ($router) {
61
+        if (!$this->app->routesAreCached()) {
62
+            $this->app['router']->group($routeConfig, function($router) {
63 63
                 $router->get('load-widget', 'WidgetController@showWidget');
64 64
             });
65 65
         }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     protected function registerBladeDirective($name, $expression)
90 90
     {
91
-        Blade::extend(function ($view) use ($name, $expression) {
91
+        Blade::extend(function($view) use ($name, $expression) {
92 92
             $pattern = $this->createMatcher($name);
93 93
 
94 94
             return preg_replace($pattern, $expression, $view);
Please login to merge, or discard this patch.