Completed
Push — master ( a15686...fb2277 )
by Iman
03:06
created
src/Utils/WidgetRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     private function _generateHtml($widget, ...$args)
46 46
     {
47 47
         // Everything inside this function is executed only when the cache is not available.
48
-        $expensivePhpCode = function () use ($widget, $args) {
48
+        $expensivePhpCode = function() use ($widget, $args) {
49 49
             $this->_makeDataForView($widget, $args);
50 50
             // render the template with the resulting data.
51 51
             return $this->renderTemplate($widget);
Please login to merge, or discard this patch.
src/WidgetsServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function boot()
21 21
     {
22
-        \Blade::directive('include_widget', function ($expression) {
22
+        \Blade::directive('include_widget', function($expression) {
23 23
             return "<?php echo $expression; ?>";
24 24
         });
25 25
 
@@ -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
 
Please login to merge, or discard this patch.