@@ -147,7 +147,7 @@ |
||
147 | 147 | */ |
148 | 148 | public function any() |
149 | 149 | { |
150 | - return ! $this->isEmpty(); |
|
150 | + return !$this->isEmpty(); |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | /** |
@@ -24,15 +24,15 @@ discard block |
||
24 | 24 | __DIR__.'/config/config.php', 'laravel-widgets' |
25 | 25 | ); |
26 | 26 | |
27 | - $this->app->bind('arrilot.widget', function () { |
|
27 | + $this->app->bind('arrilot.widget', function() { |
|
28 | 28 | return new WidgetFactory(new LaravelApplicationWrapper()); |
29 | 29 | }); |
30 | 30 | |
31 | - $this->app->bind('arrilot.async-widget', function () { |
|
31 | + $this->app->bind('arrilot.async-widget', function() { |
|
32 | 32 | return new AsyncWidgetFactory(new LaravelApplicationWrapper()); |
33 | 33 | }); |
34 | 34 | |
35 | - $this->app->singleton('command.widget.make', function ($app) { |
|
35 | + $this->app->singleton('command.widget.make', function($app) { |
|
36 | 36 | return new WidgetMakeCommand($app['files']); |
37 | 37 | }); |
38 | 38 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'prefix' => 'arrilot', |
59 | 59 | ]; |
60 | 60 | |
61 | - $this->app['router']->group($routeConfig, function ($router) { |
|
61 | + $this->app['router']->group($routeConfig, function($router) { |
|
62 | 62 | $router->get('load-widget', 'WidgetController@showWidget'); |
63 | 63 | }); |
64 | 64 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | protected function registerBladeDirective($name, $expression) |
88 | 88 | { |
89 | - Blade::extend(function ($view) use ($name, $expression) { |
|
89 | + Blade::extend(function($view) use ($name, $expression) { |
|
90 | 90 | $pattern = $this->createMatcher($name); |
91 | 91 | |
92 | 92 | return preg_replace($pattern, $expression, $view); |
@@ -195,7 +195,7 @@ |
||
195 | 195 | |
196 | 196 | // convert to snake_case part by part to avoid unexpected underscores. |
197 | 197 | $nameArray = explode('/', $name); |
198 | - array_walk($nameArray, function (&$part) { |
|
198 | + array_walk($nameArray, function(&$part) { |
|
199 | 199 | $part = snake_case($part); |
200 | 200 | }); |
201 | 201 |
@@ -94,7 +94,7 @@ |
||
94 | 94 | protected function getContentFromCache($args) |
95 | 95 | { |
96 | 96 | if ($cacheTime = (double) $this->getCacheTime()) { |
97 | - return $this->app->cache($this->widget->cacheKey($args), $cacheTime, function () { |
|
97 | + return $this->app->cache($this->widget->cacheKey($args), $cacheTime, function() { |
|
98 | 98 | return $this->getContent(); |
99 | 99 | }); |
100 | 100 | } |