@@ -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 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | protected static function bootDraftable() |
| 12 | 12 | { |
| 13 | - static::updating(function ($model) { |
|
| 13 | + static::updating(function($model) { |
|
| 14 | 14 | $model->wasDraft = $model->isDraft(); |
| 15 | 15 | $model->draft = false; |
| 16 | 16 | }); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function tagsWithType(TagType $type) : Collection |
| 18 | 18 | { |
| 19 | - return $this->tags->filter(function (Tag $tag) use ($type) { |
|
| 19 | + return $this->tags->filter(function(Tag $tag) use ($type) { |
|
| 20 | 20 | return $tag->hasType($type); |
| 21 | 21 | }); |
| 22 | 22 | } |
@@ -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']); |
@@ -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 | |