@@ -10,9 +10,9 @@ |
||
| 10 | 10 | * Available metatags (for migration, render in blade,...) - uncoment nedded: |
| 11 | 11 | */ |
| 12 | 12 | 'available' => [ |
| 13 | - 'title' => ['title' => 'Title', 'max' => 65, 'form_type' => 'string',], |
|
| 14 | - 'description' => ['title' => 'Description', 'max' => 300, 'form_type' => 'text',], |
|
| 15 | - 'keywords' => ['title' => 'Keywords',], |
|
| 13 | + 'title' => ['title' => 'Title', 'max' => 65, 'form_type' => 'string', ], |
|
| 14 | + 'description' => ['title' => 'Description', 'max' => 300, 'form_type' => 'text', ], |
|
| 15 | + 'keywords' => ['title' => 'Keywords', ], |
|
| 16 | 16 | // 'h1' => ['title' => 'H1', 'max' => 191, 'form_type' => 'string',], |
| 17 | 17 | |
| 18 | 18 | /* |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('meta_tags', function (Blueprint $table) { |
|
| 16 | + Schema::create('meta_tags', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | // url path |
| 19 | 19 | $table->string('path')->nullable(); |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | public function getForPath(): array |
| 172 | 172 | { |
| 173 | 173 | if (isset($this->path)) { |
| 174 | - if (! isset($this->pathModel)) { // Singleton |
|
| 174 | + if (!isset($this->pathModel)) { // Singleton |
|
| 175 | 175 | $modelClass = config('meta-tags.model', \Fomvasss\LaravelMetaTags\Models\MetaTag::class); |
| 176 | 176 | $this->pathModel = $modelClass::wherePath($this->path)->first() ?? 0; |
| 177 | 177 | } |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | */ |
| 202 | 202 | public function getResult(): array |
| 203 | 203 | { |
| 204 | - $result = array_filter($this->result, function ($tag) { |
|
| 204 | + $result = array_filter($this->result, function($tag) { |
|
| 205 | 205 | if ($tag !== null && $tag !== '') { |
| 206 | 206 | return $tag; |
| 207 | 207 | } |