@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | protected function bootDirectives() |
| 34 | 34 | { |
| 35 | - Blade::directive('title', function ($expression) { |
|
| 35 | + Blade::directive('title', function($expression) { |
|
| 36 | 36 | return "<?php app('seo.title')->append($expression); ?>"; |
| 37 | 37 | }); |
| 38 | 38 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function register() |
| 46 | 46 | { |
| 47 | - $this->app->singleton('seo.title', function ($app) { |
|
| 47 | + $this->app->singleton('seo.title', function($app) { |
|
| 48 | 48 | return new Title($app->make('config')->get('seo.title')); |
| 49 | 49 | }); |
| 50 | 50 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | public function setSeparator($separator) |
| 78 | 78 | { |
| 79 | - if (! is_null($separator)) { |
|
| 79 | + if (!is_null($separator)) { |
|
| 80 | 80 | $this->separator = (string) $separator; |
| 81 | 81 | } |
| 82 | 82 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | public function setSiteName($siteName) |
| 103 | 103 | { |
| 104 | - if (! is_null($siteName)) { |
|
| 104 | + if (!is_null($siteName)) { |
|
| 105 | 105 | $this->siteName = (string) $siteName; |
| 106 | 106 | } |
| 107 | 107 | |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | */ |
| 206 | 206 | public function isSiteNameVisible() |
| 207 | 207 | { |
| 208 | - return ! is_null($this->siteName) && $this->siteNameVisibility; |
|
| 208 | + return !is_null($this->siteName) && $this->siteNameVisibility; |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | /** |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | public function make() |
| 257 | 257 | { |
| 258 | 258 | $parts = []; |
| 259 | - if($this->isSiteNameVisible()) { |
|
| 259 | + if ($this->isSiteNameVisible()) { |
|
| 260 | 260 | $parts[] = $this->siteName; |
| 261 | 261 | } |
| 262 | 262 | |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | if (is_array($segment)) { |
| 287 | 287 | $normalized = array_merge($normalized, $this->normalizeSegments($segment)); |
| 288 | 288 | } else { |
| 289 | - $segment = trim(strip_tags((string) $segment)); |
|
| 289 | + $segment = trim(strip_tags((string) $segment)); |
|
| 290 | 290 | |
| 291 | 291 | if (mb_strlen($segment) > 0) { |
| 292 | 292 | $normalized[] = $this->maxSegment > 0 ? $this->limit($segment, $this->maxSegment) : $segment; |