@@ -45,7 +45,7 @@ |
||
| 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); |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | public function boot() |
| 16 | 16 | { |
| 17 | - \Blade::directive('include_widget', function ($expression) { |
|
| 17 | + \Blade::directive('include_widget', function($expression) { |
|
| 18 | 18 | return "<?php echo $expression; ?>"; |
| 19 | 19 | }); |
| 20 | 20 | |
@@ -28,31 +28,31 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public function register() |
| 30 | 30 | { |
| 31 | - $this->app->singleton('command.imanghafoori.widget', function ($app) { |
|
| 31 | + $this->app->singleton('command.imanghafoori.widget', function($app) { |
|
| 32 | 32 | return $app['Imanghafoori\Widgets\WidgetGenerator']; |
| 33 | 33 | }); |
| 34 | 34 | |
| 35 | - $this->app->singleton('imanghafoori.widget.normalizer', function () { |
|
| 35 | + $this->app->singleton('imanghafoori.widget.normalizer', function() { |
|
| 36 | 36 | return new Utils\Normalizer(); |
| 37 | 37 | }); |
| 38 | 38 | |
| 39 | - $this->app->singleton('imanghafoori.widget.minifier', function () { |
|
| 39 | + $this->app->singleton('imanghafoori.widget.minifier', function() { |
|
| 40 | 40 | return new Utils\HtmlMinifier(); |
| 41 | 41 | }); |
| 42 | 42 | |
| 43 | - $this->app->singleton('imanghafoori.widget.debugInfo', function () { |
|
| 43 | + $this->app->singleton('imanghafoori.widget.debugInfo', function() { |
|
| 44 | 44 | return new Utils\DebugInfo(); |
| 45 | 45 | }); |
| 46 | 46 | |
| 47 | - $this->app->singleton('imanghafoori.widget.policies', function () { |
|
| 47 | + $this->app->singleton('imanghafoori.widget.policies', function() { |
|
| 48 | 48 | return new Utils\Policies(); |
| 49 | 49 | }); |
| 50 | 50 | |
| 51 | - $this->app->singleton('imanghafoori.widget.cache', function () { |
|
| 51 | + $this->app->singleton('imanghafoori.widget.cache', function() { |
|
| 52 | 52 | return new Utils\Cache(); |
| 53 | 53 | }); |
| 54 | 54 | |
| 55 | - $this->app->singleton('imanghafoori.widget.renderer', function () { |
|
| 55 | + $this->app->singleton('imanghafoori.widget.renderer', function() { |
|
| 56 | 56 | return new Utils\WidgetRenderer(); |
| 57 | 57 | }); |
| 58 | 58 | |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | /** |
| 169 | - * @param $presenter |
|
| 169 | + * @param string $presenter |
|
| 170 | 170 | */ |
| 171 | 171 | private function checkPresentMethodExists($presenter) |
| 172 | 172 | { |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | /** |
| 179 | - * @param $presenter |
|
| 179 | + * @param string $presenter |
|
| 180 | 180 | */ |
| 181 | 181 | private function checkPresenterExists($presenter) |
| 182 | 182 | { |