@@ -35,7 +35,7 @@ |
||
35 | 35 | protected function getStub() |
36 | 36 | { |
37 | 37 | |
38 | - return __DIR__.'/../stubs/widget.stub'; |
|
38 | + return __DIR__ . '/../stubs/widget.stub'; |
|
39 | 39 | |
40 | 40 | } |
41 | 41 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function boot() |
16 | 16 | { |
17 | - $this->loadViewsFrom($this->app->basePath().'/app/Widgets/', 'Widgets'); |
|
17 | + $this->loadViewsFrom($this->app->basePath() . '/app/Widgets/', 'Widgets'); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -28,7 +28,7 @@ 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 |
@@ -175,7 +175,7 @@ |
||
175 | 175 | private function generateHtml(...$args) |
176 | 176 | { |
177 | 177 | // Everything inside this function is executed only when the cache is not available. |
178 | - $expensivePhpCode = function () use ($args) { |
|
178 | + $expensivePhpCode = function() use ($args) { |
|
179 | 179 | $this->prepareDataForView($args); |
180 | 180 | |
181 | 181 | // render the template with the resulting data. |