Completed
Push — master ( 26a649...0f18b6 )
by Iman
02:17
created
src/WidgetsServiceProvider.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $omitParenthesis = version_compare($this->app->version(), '5.3', '<');
38 38
 
39
-        Blade::directive('widget', function ($expression) use ($omitParenthesis) {
39
+        Blade::directive('widget', function($expression) use ($omitParenthesis) {
40 40
             $expression = $omitParenthesis ? $expression : "($expression)";
41 41
 
42 42
             return "<?php echo app(\\Imanghafoori\\Widgets\\Utils\\WidgetRenderer::class)->renderWidget{$expression}; ?>";
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
      */
62 62
     private function _registerSingletons()
63 63
     {
64
-        $this->app->singleton('command.imanghafoori.widget', function ($app) {
64
+        $this->app->singleton('command.imanghafoori.widget', function($app) {
65 65
             return $app['Imanghafoori\Widgets\WidgetGenerator'];
66 66
         });
67 67
 
68
-        $this->app->singleton(Normalizer::class, function () {
68
+        $this->app->singleton(Normalizer::class, function() {
69 69
             $cacheNormalizer = new CacheNormalizer();
70 70
             $tplNormalizer = new TemplateNormalizer();
71 71
             $presenterNormalizer = new PresenterNormalizer();
@@ -74,35 +74,35 @@  discard block
 block discarded – undo
74 74
             return new Utils\Normalizer($tplNormalizer, $cacheNormalizer, $presenterNormalizer, $ctrlNormalizer);
75 75
         });
76 76
 
77
-        $this->app->singleton(Utils\HtmlMinifier::class, function () {
77
+        $this->app->singleton(Utils\HtmlMinifier::class, function() {
78 78
             return new Utils\HtmlMinifier();
79 79
         });
80 80
 
81
-        $this->app->singleton(Utils\DebugInfo::class, function () {
81
+        $this->app->singleton(Utils\DebugInfo::class, function() {
82 82
             return new Utils\DebugInfo();
83 83
         });
84 84
 
85
-        $this->app->singleton(Utils\Policies::class, function () {
85
+        $this->app->singleton(Utils\Policies::class, function() {
86 86
             return new Utils\Policies();
87 87
         });
88 88
 
89
-        $this->app->singleton(Utils\Cache::class, function () {
89
+        $this->app->singleton(Utils\Cache::class, function() {
90 90
             return new Utils\Cache();
91 91
         });
92 92
 
93
-        $this->app->singleton(Utils\CacheTag::class, function () {
93
+        $this->app->singleton(Utils\CacheTag::class, function() {
94 94
             return new Utils\CacheTag();
95 95
         });
96 96
 
97
-        $this->app->singleton(Utils\WidgetRenderer::class, function () {
97
+        $this->app->singleton(Utils\WidgetRenderer::class, function() {
98 98
             return new Utils\WidgetRenderer();
99 99
         });
100 100
     }
101 101
 
102 102
     private function _registerMacros()
103 103
     {
104
-        Route::macro('view', function ($url, $view) {
105
-            return Route::get($url, function () use ($view) {
104
+        Route::macro('view', function($url, $view) {
105
+            return Route::get($url, function() use ($view) {
106 106
                 return view($view);
107 107
             });
108 108
         });
Please login to merge, or discard this patch.