@@ -42,8 +42,7 @@ |
||
42 | 42 | public function fire() |
43 | 43 | { |
44 | 44 | $queue = ($this->argument('queue')) ? |
45 | - $this->argument('queue') : |
|
46 | - config('queue.connections.beanstalkd.queue'); |
|
45 | + $this->argument('queue') : config('queue.connections.beanstalkd.queue'); |
|
47 | 46 | |
48 | 47 | $this->info(sprintf('Clearing queue: %s', $queue)); |
49 | 48 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $viewData = $view->getData(); |
14 | 14 | |
15 | 15 | |
16 | - if (! array_keys_exist(['module', 'model', 'errors'], $viewData)) { |
|
16 | + if (!array_keys_exist(['module', 'model', 'errors'], $viewData)) { |
|
17 | 17 | return; |
18 | 18 | } |
19 | 19 |
@@ -14,11 +14,11 @@ |
||
14 | 14 | return false; |
15 | 15 | } |
16 | 16 | |
17 | - if (! app()->environment('production')) { |
|
17 | + if (!app()->environment('production')) { |
|
18 | 18 | return false; |
19 | 19 | } |
20 | 20 | |
21 | - if (! env('ALLOW_ROBOTS')) { |
|
21 | + if (!env('ALLOW_ROBOTS')) { |
|
22 | 22 | return false; |
23 | 23 | } |
24 | 24 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected function registerHtmlBuilder() |
33 | 33 | { |
34 | - $this->app->singleton('html', function ($app) { |
|
34 | + $this->app->singleton('html', function($app) { |
|
35 | 35 | return new HtmlBuilder($app['url']); |
36 | 36 | }); |
37 | 37 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | protected function registerFormBuilder() |
43 | 43 | { |
44 | - $this->app->singleton('form', function ($app) { |
|
44 | + $this->app->singleton('form', function($app) { |
|
45 | 45 | $formBuilder = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken()); |
46 | 46 | |
47 | 47 | $formBuilder->setSessionStore($app['session.store']); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * Get a parameter of the current route. |
37 | 37 | * |
38 | - * @param $key |
|
38 | + * @param string $key |
|
39 | 39 | * |
40 | 40 | * @return object|string |
41 | 41 | */ |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | public function handle($request, Closure $next) |
12 | 12 | { |
13 | - if (! current_user()) { |
|
13 | + if (!current_user()) { |
|
14 | 14 | return $this->handleUnauthorizedRequest($request); |
15 | 15 | } |
16 | 16 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | public function isCurrentUser() : bool |
57 | 57 | { |
58 | - if (! $this->id) { |
|
58 | + if (!$this->id) { |
|
59 | 59 | return false; |
60 | 60 | } |
61 | 61 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | public static function getContentLocale() : string |
26 | 26 | { |
27 | - if (! static::isValidLocale(locale())) { |
|
27 | + if (!static::isValidLocale(locale())) { |
|
28 | 28 | return config('app.locales')[0]; |
29 | 29 | } |
30 | 30 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | protected static function isValidLocale($locale) : bool |
35 | 35 | { |
36 | - if (! is_string($locale)) { |
|
36 | + if (!is_string($locale)) { |
|
37 | 37 | return false; |
38 | 38 | } |
39 | 39 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | protected function registerSection() |
26 | 26 | { |
27 | - Request::macro('section', function () { |
|
27 | + Request::macro('section', function() { |
|
28 | 28 | |
29 | 29 | if (request()->segment(1) === 'blender') { |
30 | 30 | return 'back'; |
@@ -33,11 +33,11 @@ discard block |
||
33 | 33 | return 'front'; |
34 | 34 | }); |
35 | 35 | |
36 | - Request::macro('isFront', function () { |
|
36 | + Request::macro('isFront', function() { |
|
37 | 37 | return request()->section() === 'front'; |
38 | 38 | }); |
39 | 39 | |
40 | - Request::macro('isBack', function () { |
|
40 | + Request::macro('isBack', function() { |
|
41 | 41 | return request()->section() === 'back'; |
42 | 42 | }); |
43 | 43 | } |