@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | * @var array |
178 | 178 | */ |
179 | 179 | static protected $_schemaPropertyExpectedTypes = [ |
180 | - 'availableLanguage' => ['Language','Text'], |
|
180 | + 'availableLanguage' => ['Language', 'Text'], |
|
181 | 181 | 'processingTime' => ['Duration'], |
182 | 182 | 'providesService' => ['Service'], |
183 | 183 | 'serviceLocation' => ['Place'], |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | { |
262 | 262 | $rules = parent::rules(); |
263 | 263 | $rules = array_merge($rules, [ |
264 | - [['availableLanguage','processingTime','providesService','serviceLocation','servicePhone','servicePostalAddress','serviceSmsNumber','serviceUrl'], 'validateJsonSchema'], |
|
264 | + [['availableLanguage', 'processingTime', 'providesService', 'serviceLocation', 'servicePhone', 'servicePostalAddress', 'serviceSmsNumber', 'serviceUrl'], 'validateJsonSchema'], |
|
265 | 265 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
266 | 266 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
267 | 267 | ]); |
@@ -207,13 +207,13 @@ discard block |
||
207 | 207 | */ |
208 | 208 | static protected $_schemaPropertyExpectedTypes = [ |
209 | 209 | 'maxValue' => ['Number'], |
210 | - 'measurementTechnique' => ['Text','URL'], |
|
210 | + 'measurementTechnique' => ['Text', 'URL'], |
|
211 | 211 | 'minValue' => ['Number'], |
212 | - 'propertyID' => ['Text','URL'], |
|
213 | - 'unitCode' => ['Text','URL'], |
|
212 | + 'propertyID' => ['Text', 'URL'], |
|
213 | + 'unitCode' => ['Text', 'URL'], |
|
214 | 214 | 'unitText' => ['Text'], |
215 | - 'value' => ['Boolean','Number','StructuredValue','Text'], |
|
216 | - 'valueReference' => ['Enumeration','PropertyValue','QualitativeValue','QuantitativeValue','StructuredValue'] |
|
215 | + 'value' => ['Boolean', 'Number', 'StructuredValue', 'Text'], |
|
216 | + 'valueReference' => ['Enumeration', 'PropertyValue', 'QualitativeValue', 'QuantitativeValue', 'StructuredValue'] |
|
217 | 217 | ]; |
218 | 218 | |
219 | 219 | /** |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | { |
291 | 291 | $rules = parent::rules(); |
292 | 292 | $rules = array_merge($rules, [ |
293 | - [['maxValue','measurementTechnique','minValue','propertyID','unitCode','unitText','value','valueReference'], 'validateJsonSchema'], |
|
293 | + [['maxValue', 'measurementTechnique', 'minValue', 'propertyID', 'unitCode', 'unitText', 'value', 'valueReference'], 'validateJsonSchema'], |
|
294 | 294 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
295 | 295 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
296 | 296 | ]); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | 'billingIncrement' => ['Number'], |
163 | 163 | 'priceType' => ['Text'], |
164 | 164 | 'referenceQuantity' => ['QuantitativeValue'], |
165 | - 'unitCode' => ['Text','URL'], |
|
165 | + 'unitCode' => ['Text', 'URL'], |
|
166 | 166 | 'unitText' => ['Text'] |
167 | 167 | ]; |
168 | 168 | |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | { |
238 | 238 | $rules = parent::rules(); |
239 | 239 | $rules = array_merge($rules, [ |
240 | - [['billingIncrement','priceType','referenceQuantity','unitCode','unitText'], 'validateJsonSchema'], |
|
240 | + [['billingIncrement', 'priceType', 'referenceQuantity', 'unitCode', 'unitText'], 'validateJsonSchema'], |
|
241 | 241 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
242 | 242 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
243 | 243 | ]); |
@@ -207,10 +207,10 @@ |
||
207 | 207 | } |
208 | 208 | // Make sure these are strings |
209 | 209 | if (!empty($this->facebookProfileId)) { |
210 | - $this->facebookProfileId = (string)$this->facebookProfileId; |
|
210 | + $this->facebookProfileId = (string) $this->facebookProfileId; |
|
211 | 211 | } |
212 | 212 | if (!empty($this->facebookAppId)) { |
213 | - $this->facebookAppId = (string)$this->facebookAppId; |
|
213 | + $this->facebookAppId = (string) $this->facebookAppId; |
|
214 | 214 | } |
215 | 215 | // Identity |
216 | 216 | if ($this->identity !== null && \is_array($this->identity)) { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | $className = MetaTag::class; |
57 | 57 | if ($tagType) { |
58 | 58 | // Potentially load a sub-type of MetaTag |
59 | - $tagClassName = 'nystudio107\\seomatic\\models\\metatag\\' . ucfirst($tagType) . 'Tag'; |
|
59 | + $tagClassName = 'nystudio107\\seomatic\\models\\metatag\\'.ucfirst($tagType).'Tag'; |
|
60 | 60 | /** @var $model MetaTag */ |
61 | 61 | if (class_exists($tagClassName)) { |
62 | 62 | $className = $tagClassName; |
@@ -106,7 +106,7 @@ |
||
106 | 106 | */ |
107 | 107 | private static function getConfigFilePath(string $alias, string $filePath): string |
108 | 108 | { |
109 | - $path = DIRECTORY_SEPARATOR . ltrim($filePath, DIRECTORY_SEPARATOR); |
|
109 | + $path = DIRECTORY_SEPARATOR.ltrim($filePath, DIRECTORY_SEPARATOR); |
|
110 | 110 | $path = Craft::getAlias($alias) |
111 | 111 | . DIRECTORY_SEPARATOR |
112 | 112 | . self::LOCAL_CONFIG_DIR |
@@ -196,11 +196,11 @@ |
||
196 | 196 | foreach ($typesArray as $key => $value) { |
197 | 197 | $indent = html_entity_decode(str_repeat(' ', $indentLevel)); |
198 | 198 | if (\is_array($value)) { |
199 | - $result[$key] = $indent . $key; |
|
199 | + $result[$key] = $indent.$key; |
|
200 | 200 | $value = self::flattenSchemaArray($value, $indentLevel + self::MENU_INDENT_STEP); |
201 | 201 | $result = array_merge($result, $value); |
202 | 202 | } else { |
203 | - $result[$key] = $indent . $value; |
|
203 | + $result[$key] = $indent.$value; |
|
204 | 204 | } |
205 | 205 | } |
206 | 206 |
@@ -205,7 +205,7 @@ |
||
205 | 205 | // Prefix the keys with the global set name |
206 | 206 | $prefix = $global->handle; |
207 | 207 | $fields = array_combine( |
208 | - array_map(function ($key) use ($prefix) { |
|
208 | + array_map(function($key) use ($prefix) { |
|
209 | 209 | return $prefix.'.'.$key; |
210 | 210 | }, array_keys($fields)), |
211 | 211 | $fields |
@@ -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 | ]); |