@@ -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 | /** |
@@ -147,8 +147,8 @@ discard block |
||
147 | 147 | * @var array |
148 | 148 | */ |
149 | 149 | static protected $_schemaPropertyExpectedTypes = [ |
150 | - 'acceptsReservations' => ['Boolean','Text','URL'], |
|
151 | - 'hasMenu' => ['Menu','Text','URL'], |
|
150 | + 'acceptsReservations' => ['Boolean', 'Text', 'URL'], |
|
151 | + 'hasMenu' => ['Menu', 'Text', 'URL'], |
|
152 | 152 | 'servesCuisine' => ['Text'], |
153 | 153 | 'starRating' => ['Rating'] |
154 | 154 | ]; |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | { |
224 | 224 | $rules = parent::rules(); |
225 | 225 | $rules = array_merge($rules, [ |
226 | - [['acceptsReservations','hasMenu','servesCuisine','starRating'], 'validateJsonSchema'], |
|
226 | + [['acceptsReservations', 'hasMenu', 'servesCuisine', 'starRating'], 'validateJsonSchema'], |
|
227 | 227 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
228 | 228 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
229 | 229 | ]); |