| @@ -24,7 +24,7 @@ discard block | ||
| 24 | 24 | 'name' => 'General', | 
| 25 | 25 | 'description' => 'General Meta Tags', | 
| 26 | 26 | 'handle' => TagService::GENERAL_HANDLE, | 
| 27 | - 'class' => (string)MetaTagContainer::class, | |
| 27 | + 'class' => (string) MetaTagContainer::class, | |
| 28 | 28 | 'include' => true, | 
| 29 | 29 | 'dependencies' => [ | 
| 30 | 30 | ], | 
| @@ -80,7 +80,7 @@ discard block | ||
| 80 | 80 | 'name' => 'Facebook', | 
| 81 | 81 | 'description' => 'Facebook OpenGraph Meta Tags', | 
| 82 | 82 | 'handle' => TagService::FACEBOOK_HANDLE, | 
| 83 | - 'class' => (string)MetaTagContainer::class, | |
| 83 | + 'class' => (string) MetaTagContainer::class, | |
| 84 | 84 | 'include' => true, | 
| 85 | 85 | 'dependencies' => [ | 
| 86 | 86 | ], | 
| @@ -195,7 +195,7 @@ discard block | ||
| 195 | 195 | 'description' => 'Twitter Card Meta Tags', | 
| 196 | 196 | 'handle' => TagService::TWITTER_HANDLE, | 
| 197 | 197 | 'include' => true, | 
| 198 | - 'class' => (string)MetaTagContainer::class, | |
| 198 | + 'class' => (string) MetaTagContainer::class, | |
| 199 | 199 | 'dependencies' => [ | 
| 200 | 200 | Dependency::SITE_DEPENDENCY => ['twitterHandle'], | 
| 201 | 201 | ], | 
| @@ -278,7 +278,7 @@ discard block | ||
| 278 | 278 | 'name' => 'Miscellaneous', | 
| 279 | 279 | 'description' => 'Miscellaneous Meta Tags', | 
| 280 | 280 | 'handle' => TagService::MISC_HANDLE, | 
| 281 | - 'class' => (string)MetaTagContainer::class, | |
| 281 | + 'class' => (string) MetaTagContainer::class, | |
| 282 | 282 | 'include' => true, | 
| 283 | 283 | 'dependencies' => [ | 
| 284 | 284 | ], | 
| @@ -68,7 +68,7 @@ | ||
| 68 | 68 |          if ($shouldRender) { | 
| 69 | 69 |              if (!empty($data['content'])) { | 
| 70 | 70 | // Truncate the Description tag content | 
| 71 | - $data['content'] = (string)Stringy::create($data['content'])->safeTruncate( | |
| 71 | + $data['content'] = (string) Stringy::create($data['content'])->safeTruncate( | |
| 72 | 72 | Seomatic::$settings->maxDescriptionLength, | 
| 73 | 73 | '…' | 
| 74 | 74 | ); | 
| @@ -68,7 +68,7 @@ | ||
| 68 | 68 |          if ($shouldRender) { | 
| 69 | 69 |              if (!empty($data['content'])) { | 
| 70 | 70 | // Truncate the Description tag content | 
| 71 | - $data['content'] = (string)Stringy::create($data['content'])->safeTruncate( | |
| 71 | + $data['content'] = (string) Stringy::create($data['content'])->safeTruncate( | |
| 72 | 72 | 200, | 
| 73 | 73 | '…' | 
| 74 | 74 | ); | 
| @@ -128,7 +128,7 @@ | ||
| 128 | 128 | } | 
| 129 | 129 | $lengthAdjust = mb_strlen($prefix.$suffix); | 
| 130 | 130 | // Truncate the og:title tag content | 
| 131 | - $data['content'] = (string)Stringy::create($data['content'])->safeTruncate( | |
| 131 | + $data['content'] = (string) Stringy::create($data['content'])->safeTruncate( | |
| 132 | 132 | Seomatic::$settings->maxTitleLength - $lengthAdjust, | 
| 133 | 133 | '…' | 
| 134 | 134 | ); | 
| @@ -68,7 +68,7 @@ | ||
| 68 | 68 |          if ($shouldRender) { | 
| 69 | 69 |              if (!empty($data['content'])) { | 
| 70 | 70 | // Truncate the Description tag content | 
| 71 | - $data['content'] = (string)Stringy::create($data['content'])->safeTruncate( | |
| 71 | + $data['content'] = (string) Stringy::create($data['content'])->safeTruncate( | |
| 72 | 72 | 300, | 
| 73 | 73 | '…' | 
| 74 | 74 | ); | 
| @@ -130,7 +130,7 @@ | ||
| 130 | 130 | } | 
| 131 | 131 | $lengthAdjust = mb_strlen($prefix.$suffix); | 
| 132 | 132 | // Truncate the twitter:title tag content | 
| 133 | - $data['content'] = (string)Stringy::create($data['content'])->safeTruncate( | |
| 133 | + $data['content'] = (string) Stringy::create($data['content'])->safeTruncate( | |
| 134 | 134 | Seomatic::$settings->maxTitleLength - $lengthAdjust, | 
| 135 | 135 | '…' | 
| 136 | 136 | ); | 
| @@ -55,7 +55,7 @@ | ||
| 55 | 55 | $className = MetaLink::class; | 
| 56 | 56 |          if ($tagType) { | 
| 57 | 57 | // Potentially load a sub-type of MetaTag | 
| 58 | - $tagClassName = 'nystudio107\\seomatic\\models\\metalink\\' . ucfirst($tagType) . 'Link'; | |
| 58 | + $tagClassName = 'nystudio107\\seomatic\\models\\metalink\\'.ucfirst($tagType).'Link'; | |
| 59 | 59 | /** @var $model MetaLink */ | 
| 60 | 60 |              if (class_exists($tagClassName)) { | 
| 61 | 61 | $className = $tagClassName; | 
| @@ -226,7 +226,7 @@ | ||
| 226 | 226 |      { | 
| 227 | 227 | $rules = parent::rules(); | 
| 228 | 228 | $rules = array_merge($rules, [ | 
| 229 | - [['currenciesAccepted','openingHours','paymentAccepted','priceRange'], 'validateJsonSchema'], | |
| 229 | + [['currenciesAccepted', 'openingHours', 'paymentAccepted', 'priceRange'], 'validateJsonSchema'], | |
| 230 | 230 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], | 
| 231 | 231 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] | 
| 232 | 232 | ]); | 
| @@ -129,7 +129,7 @@ | ||
| 129 | 129 | * @var array | 
| 130 | 130 | */ | 
| 131 | 131 | static protected $_schemaPropertyExpectedTypes = [ | 
| 132 | - 'followee' => ['Organization','Person'] | |
| 132 | + 'followee' => ['Organization', 'Person'] | |
| 133 | 133 | ]; | 
| 134 | 134 | |
| 135 | 135 | /** |