@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | public function getForPath(): array |
| 175 | 175 | { |
| 176 | 176 | if (isset($this->path)) { |
| 177 | - if (! isset($this->pathModel)) { // Singleton |
|
| 177 | + if (!isset($this->pathModel)) { // Singleton |
|
| 178 | 178 | $modelClass = config('meta-tags.model', \Fomvasss\LaravelMetaTags\Models\MetaTag::class); |
| 179 | 179 | try { |
| 180 | 180 | $this->pathModel = $modelClass::wherePath($this->path)->first() ?? 0; |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | */ |
| 209 | 209 | public function getResult(): array |
| 210 | 210 | { |
| 211 | - $result = array_filter($this->result, function ($tag) { |
|
| 211 | + $result = array_filter($this->result, function($tag) { |
|
| 212 | 212 | if ($tag !== null && $tag !== '') { |
| 213 | 213 | return $tag; |
| 214 | 214 | } |
@@ -15,9 +15,9 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | 'available' => [ |
| 17 | 17 | // Meta-tags |
| 18 | - 'title' => ['title' => 'Title'], // recommend max => 60 |
|
| 19 | - 'description' => ['title' => 'Description'], // recommend max => 300 |
|
| 20 | - 'keywords' => ['title' => 'Keywords'], // recommend max => 300 |
|
| 18 | + 'title' => ['title' => 'Title'], // recommend max => 60 |
|
| 19 | + 'description' => ['title' => 'Description'], // recommend max => 300 |
|
| 20 | + 'keywords' => ['title' => 'Keywords'], // recommend max => 300 |
|
| 21 | 21 | |
| 22 | 22 | // OG-tags |
| 23 | 23 | // 'og_site_name' => ['title' => 'OG-site_name', 'default' => '[site:name]', 'type' => 'og'], |
@@ -58,9 +58,9 @@ discard block |
||
| 58 | 58 | | ----------------------------------------------------------------- |
| 59 | 59 | */ |
| 60 | 60 | 'values' => [ |
| 61 | - 'robots' => ['none', 'all', 'index', 'noindex', 'nofollow', 'follow',], |
|
| 62 | - 'changefreq' => ['always', 'daily', 'hourly', 'weekly',], |
|
| 63 | - 'priority' => [0.1, 0.2, 0.3, 0.5, 0.6, 0.7, 0.8, 0.9,], |
|
| 61 | + 'robots' => ['none', 'all', 'index', 'noindex', 'nofollow', 'follow', ], |
|
| 62 | + 'changefreq' => ['always', 'daily', 'hourly', 'weekly', ], |
|
| 63 | + 'priority' => [0.1, 0.2, 0.3, 0.5, 0.6, 0.7, 0.8, 0.9, ], |
|
| 64 | 64 | ], |
| 65 | 65 | |
| 66 | 66 | /* ----------------------------------------------------------------- |