@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * Set title separator. |
| 75 | 75 | * |
| 76 | 76 | * @param string $separator |
| 77 | - * @return \LaraComponents\Seo\Title |
|
| 77 | + * @return Title |
|
| 78 | 78 | */ |
| 79 | 79 | public function setSeparator($separator) |
| 80 | 80 | { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * Set site name. |
| 100 | 100 | * |
| 101 | 101 | * @param string $siteName |
| 102 | - * @return \LaraComponents\Seo\Title |
|
| 102 | + * @return Title |
|
| 103 | 103 | */ |
| 104 | 104 | public function setSiteName($siteName) |
| 105 | 105 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * Set segment max length. |
| 125 | 125 | * |
| 126 | 126 | * @param int $max |
| 127 | - * @return \LaraComponents\Seo\Title |
|
| 127 | + * @return Title |
|
| 128 | 128 | */ |
| 129 | 129 | public function setMaxSegemnt($max) |
| 130 | 130 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | * Set title max length. |
| 148 | 148 | * |
| 149 | 149 | * @param int $max |
| 150 | - * @return \LaraComponents\Seo\Title |
|
| 150 | + * @return Title |
|
| 151 | 151 | */ |
| 152 | 152 | public function setMaxTitle($max) |
| 153 | 153 | { |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * Set reverse title position. |
| 171 | 171 | * |
| 172 | 172 | * @param bool $reverse |
| 173 | - * @return \LaraComponents\Seo\Title |
|
| 173 | + * @return Title |
|
| 174 | 174 | */ |
| 175 | 175 | public function setReverse($reverse = true) |
| 176 | 176 | { |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | /** |
| 215 | 215 | * Appent title to segments. |
| 216 | 216 | * |
| 217 | - * @return \LaraComponents\Seo\Title |
|
| 217 | + * @return Title |
|
| 218 | 218 | */ |
| 219 | 219 | public function add() |
| 220 | 220 | { |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | /** |
| 231 | 231 | * Set title segments. |
| 232 | 232 | * |
| 233 | - * @return \LaraComponents\Seo\Title |
|
| 233 | + * @return Title |
|
| 234 | 234 | */ |
| 235 | 235 | public function set() |
| 236 | 236 | { |
@@ -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 | } |