@@ -38,7 +38,7 @@ |
||
38 | 38 | { |
39 | 39 | $this->setMaxSize(isset($config['max_size']) ? $config['max_size'] : 0); |
40 | 40 | |
41 | - if(isset($config['default'])) { |
|
41 | + if (isset($config['default'])) { |
|
42 | 42 | $this->set($config['default']); |
43 | 43 | } |
44 | 44 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function setSeparator($separator) |
77 | 77 | { |
78 | - if (! is_null($separator)) { |
|
78 | + if (!is_null($separator)) { |
|
79 | 79 | $this->separator = (string) $separator; |
80 | 80 | } |
81 | 81 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public function setSiteName($siteName) |
102 | 102 | { |
103 | - if (! is_null($siteName)) { |
|
103 | + if (!is_null($siteName)) { |
|
104 | 104 | $this->siteName = (string) $siteName; |
105 | 105 | } |
106 | 106 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | */ |
205 | 205 | public function isSiteNameVisible() |
206 | 206 | { |
207 | - return ! is_null($this->siteName) && $this->siteNameVisibility; |
|
207 | + return !is_null($this->siteName) && $this->siteNameVisibility; |
|
208 | 208 | } |
209 | 209 | |
210 | 210 | /** |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $this->setMaxWords(isset($config['max_words']) ? $config['max_words'] : 0); |
38 | 38 | |
39 | - if(isset($config['default'])) { |
|
39 | + if (isset($config['default'])) { |
|
40 | 40 | $this->set($config['default']); |
41 | 41 | } |
42 | 42 | } |
@@ -84,9 +84,9 @@ discard block |
||
84 | 84 | |
85 | 85 | protected function clean($items) |
86 | 86 | { |
87 | - $items = ! is_array($items) ? explode(',', $items) : $items; |
|
87 | + $items = !is_array($items) ? explode(',', $items) : $items; |
|
88 | 88 | |
89 | - return array_map(function ($item) { |
|
89 | + return array_map(function($item) { |
|
90 | 90 | return trim(strip_tags($item)); |
91 | 91 | }, $items); |
92 | 92 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | protected function bootDirectives() |
36 | 36 | { |
37 | - Blade::directive('title', function ($expression) { |
|
37 | + Blade::directive('title', function($expression) { |
|
38 | 38 | return "<?php app('seo.title')->add($expression); ?>"; |
39 | 39 | }); |
40 | 40 | } |
@@ -46,15 +46,15 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function register() |
48 | 48 | { |
49 | - $this->app->singleton('seo.title', function ($app) { |
|
49 | + $this->app->singleton('seo.title', function($app) { |
|
50 | 50 | return new Title($app->make('config')->get('seo.title')); |
51 | 51 | }); |
52 | 52 | |
53 | - $this->app->singleton('seo.description', function ($app) { |
|
53 | + $this->app->singleton('seo.description', function($app) { |
|
54 | 54 | return new Description($app->make('config')->get('seo.description')); |
55 | 55 | }); |
56 | 56 | |
57 | - $this->app->singleton('seo.keywords', function ($app) { |
|
57 | + $this->app->singleton('seo.keywords', function($app) { |
|
58 | 58 | return new Keywords($app->make('config')->get('seo.keywords')); |
59 | 59 | }); |
60 | 60 | } |