Completed
Push — master ( b3e533...24297e )
by Nekrasov
30s queued 12s
created
src/Console/WidgetMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
 
224 224
         // convert to snake_case part by part to avoid unexpected underscores.
225 225
         $nameArray = explode('/', $name);
226
-        array_walk($nameArray, function (&$part) {
226
+        array_walk($nameArray, function(&$part) {
227 227
             $part = Str::snake($part);
228 228
         });
229 229
 
Please login to merge, or discard this patch.
src/NamespacesRepository.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      * @param string $alias
20 20
      * @param string $namespace
21 21
      *
22
-     * @return WidgetNamespaces
22
+     * @return NamespacesRepository
23 23
      */
24 24
     public function registerNamespace($alias, $namespace)
25 25
     {
@@ -31,7 +31,6 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * Get namespace by his alias.
33 33
      *
34
-     * @param string $label
35 34
      *
36 35
      * @throws \Exception
37 36
      *
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,23 +21,23 @@  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('arrilot.widget-namespaces', function () {
36
+        $this->app->singleton('arrilot.widget-namespaces', function() {
37 37
             return new NamespacesRepository();
38 38
         });
39 39
 
40
-        $this->app->singleton('command.widget.make', function ($app) {
40
+        $this->app->singleton('command.widget.make', function($app) {
41 41
             return new WidgetMakeCommand($app['files']);
42 42
         });
43 43
 
@@ -66,20 +66,20 @@  discard block
 block discarded – undo
66 66
         ];
67 67
 
68 68
         if (!$this->app->routesAreCached()) {
69
-            $this->app['router']->group($routeConfig, function ($router) {
69
+            $this->app['router']->group($routeConfig, function($router) {
70 70
                 $router->get('load-widget', 'WidgetController@showWidget');
71 71
             });
72 72
         }
73 73
 
74
-        Blade::directive('widget', function ($expression) {
74
+        Blade::directive('widget', function($expression) {
75 75
             return "<?php echo app('arrilot.widget')->run($expression); ?>";
76 76
         });
77 77
 
78
-        Blade::directive('asyncWidget', function ($expression) {
78
+        Blade::directive('asyncWidget', function($expression) {
79 79
             return "<?php echo app('arrilot.async-widget')->run($expression); ?>";
80 80
         });
81 81
 
82
-        Blade::directive('widgetGroup', function ($expression) {
82
+        Blade::directive('widgetGroup', function($expression) {
83 83
             return "<?php echo app('arrilot.widget-group-collection')->group($expression)->display(); ?>";
84 84
         });
85 85
     }
Please login to merge, or discard this patch.