@@ -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 | } |
@@ -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 | } |