Completed
Push — master ( 4f0406...3f0c83 )
by Iman
107:14 queued 51:28
created
src/Utils/Normalizers/ControllerNormalizer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     private function checkControllerExists($ctrlClass)
26 26
     {
27
-        if (! class_exists($ctrlClass)) {
27
+        if (!class_exists($ctrlClass)) {
28 28
             throw new \InvalidArgumentException("Controller class: [{$ctrlClass}] not found.");
29 29
         }
30 30
     }
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
      */
35 35
     private function checkDataMethodExists($ctrlClass)
36 36
     {
37
-        if (! method_exists($ctrlClass, 'data')) {
38
-            throw new \InvalidArgumentException("'data' method not found on ".$ctrlClass);
37
+        if (!method_exists($ctrlClass, 'data')) {
38
+            throw new \InvalidArgumentException("'data' method not found on " . $ctrlClass);
39 39
         }
40 40
     }
41 41
 
Please login to merge, or discard this patch.
src/WidgetsServiceProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
         $this->_defineDirectives($omitParenthesis);
25 25
 
26
-        $this->loadViewsFrom($this->app->basePath().'/app/Widgets/', 'Widgets');
26
+        $this->loadViewsFrom($this->app->basePath() . '/app/Widgets/', 'Widgets');
27 27
     }
28 28
 
29 29
     /**
@@ -33,11 +33,11 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function register()
35 35
     {
36
-        $this->app->singleton('command.imanghafoori.widget', function ($app) {
36
+        $this->app->singleton('command.imanghafoori.widget', function($app) {
37 37
             return $app['Imanghafoori\Widgets\WidgetGenerator'];
38 38
         });
39 39
 
40
-        $this->app->singleton(Normalizer::class, function () {
40
+        $this->app->singleton(Normalizer::class, function() {
41 41
             $cacheNormalizer = new CacheNormalizer();
42 42
             $templateNormalizer = new TemplateNormalizer();
43 43
             $presenterNormalizer = new PresenterNormalizer();
@@ -46,23 +46,23 @@  discard block
 block discarded – undo
46 46
             return new Utils\Normalizer($templateNormalizer, $cacheNormalizer, $presenterNormalizer, $controllerNormalizer);
47 47
         });
48 48
 
49
-        $this->app->singleton(Utils\HtmlMinifier::class, function () {
49
+        $this->app->singleton(Utils\HtmlMinifier::class, function() {
50 50
             return new Utils\HtmlMinifier();
51 51
         });
52 52
 
53
-        $this->app->singleton(Utils\DebugInfo::class, function () {
53
+        $this->app->singleton(Utils\DebugInfo::class, function() {
54 54
             return new Utils\DebugInfo();
55 55
         });
56 56
 
57
-        $this->app->singleton(Utils\Policies::class, function () {
57
+        $this->app->singleton(Utils\Policies::class, function() {
58 58
             return new Utils\Policies();
59 59
         });
60 60
 
61
-        $this->app->singleton(Utils\Cache::class, function () {
61
+        $this->app->singleton(Utils\Cache::class, function() {
62 62
             return new Utils\Cache();
63 63
         });
64 64
 
65
-        $this->app->singleton(Utils\WidgetRenderer::class, function () {
65
+        $this->app->singleton(Utils\WidgetRenderer::class, function() {
66 66
             return new Utils\WidgetRenderer();
67 67
         });
68 68
 
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function _defineDirectives($omitParenthesis)
76 76
     {
77
-        Blade::directive('render_widget', function ($expression) use ($omitParenthesis) {
77
+        Blade::directive('render_widget', function($expression) use ($omitParenthesis) {
78 78
             $expression = $omitParenthesis ? $expression : "($expression)";
79 79
 
80 80
             return "<?php echo app(\\Imanghafoori\\Widgets\\Utils\\WidgetRenderer::class)->renderWidget{$expression}; ?>";
81 81
         });
82 82
 
83
-        Blade::directive('widget', function ($expression) use ($omitParenthesis) {
83
+        Blade::directive('widget', function($expression) use ($omitParenthesis) {
84 84
             $expression = $omitParenthesis ? $expression : "($expression)";
85 85
 
86 86
             return "<?php echo app(\\Imanghafoori\\Widgets\\Utils\\WidgetRenderer::class)->renderWidget{$expression}; ?>";
Please login to merge, or discard this patch.