@@ -152,8 +152,8 @@ discard block |
||
152 | 152 | * @var array |
153 | 153 | */ |
154 | 154 | static protected $_schemaPropertyExpectedTypes = [ |
155 | - 'itemListElement' => ['ListItem','Text','Thing'], |
|
156 | - 'itemListOrder' => ['ItemListOrderType','Text'], |
|
155 | + 'itemListElement' => ['ListItem', 'Text', 'Thing'], |
|
156 | + 'itemListOrder' => ['ItemListOrderType', 'Text'], |
|
157 | 157 | 'numberOfItems' => ['Integer'] |
158 | 158 | ]; |
159 | 159 | |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | { |
227 | 227 | $rules = parent::rules(); |
228 | 228 | $rules = array_merge($rules, [ |
229 | - [['itemListElement','itemListOrder','numberOfItems'], 'validateJsonSchema'], |
|
229 | + [['itemListElement', 'itemListOrder', 'numberOfItems'], '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 | ]); |
@@ -202,7 +202,7 @@ |
||
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
204 | 204 | $rules = array_merge($rules, [ |
205 | - [['fromLocation','toLocation'], 'validateJsonSchema'], |
|
205 | + [['fromLocation', 'toLocation'], 'validateJsonSchema'], |
|
206 | 206 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
207 | 207 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
208 | 208 | ]); |
@@ -247,7 +247,7 @@ |
||
247 | 247 | { |
248 | 248 | $rules = parent::rules(); |
249 | 249 | $rules = array_merge($rules, [ |
250 | - [['issuedBy','issuedThrough','permitAudience','validFor','validFrom','validIn','validUntil'], 'validateJsonSchema'], |
|
250 | + [['issuedBy', 'issuedThrough', 'permitAudience', 'validFor', 'validFrom', 'validIn', 'validUntil'], 'validateJsonSchema'], |
|
251 | 251 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
252 | 252 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
253 | 253 | ]); |
@@ -406,9 +406,9 @@ discard block |
||
406 | 406 | * @var array |
407 | 407 | */ |
408 | 408 | static protected $_schemaPropertyExpectedTypes = [ |
409 | - 'acceptedPaymentMethod' => ['LoanOrCredit','PaymentMethod'], |
|
409 | + 'acceptedPaymentMethod' => ['LoanOrCredit', 'PaymentMethod'], |
|
410 | 410 | 'advanceBookingRequirement' => ['QuantitativeValue'], |
411 | - 'areaServed' => ['AdministrativeArea','GeoShape','Place','Text'], |
|
411 | + 'areaServed' => ['AdministrativeArea', 'GeoShape', 'Place', 'Text'], |
|
412 | 412 | 'availability' => ['ItemAvailability'], |
413 | 413 | 'availabilityEnds' => ['DateTime'], |
414 | 414 | 'availabilityStarts' => ['DateTime'], |
@@ -419,20 +419,20 @@ discard block |
||
419 | 419 | 'eligibleCustomerType' => ['BusinessEntityType'], |
420 | 420 | 'eligibleDuration' => ['QuantitativeValue'], |
421 | 421 | 'eligibleQuantity' => ['QuantitativeValue'], |
422 | - 'eligibleRegion' => ['GeoShape','Place','Text'], |
|
422 | + 'eligibleRegion' => ['GeoShape', 'Place', 'Text'], |
|
423 | 423 | 'eligibleTransactionVolume' => ['PriceSpecification'], |
424 | 424 | 'gtin12' => ['Text'], |
425 | 425 | 'gtin13' => ['Text'], |
426 | 426 | 'gtin14' => ['Text'], |
427 | 427 | 'gtin8' => ['Text'], |
428 | 428 | 'includesObject' => ['TypeAndQuantityNode'], |
429 | - 'ineligibleRegion' => ['GeoShape','Place','Text'], |
|
429 | + 'ineligibleRegion' => ['GeoShape', 'Place', 'Text'], |
|
430 | 430 | 'inventoryLevel' => ['QuantitativeValue'], |
431 | 431 | 'itemCondition' => ['OfferItemCondition'], |
432 | - 'itemOffered' => ['Product','Service'], |
|
432 | + 'itemOffered' => ['Product', 'Service'], |
|
433 | 433 | 'mpn' => ['Text'], |
434 | 434 | 'priceSpecification' => ['PriceSpecification'], |
435 | - 'seller' => ['Organization','Person'], |
|
435 | + 'seller' => ['Organization', 'Person'], |
|
436 | 436 | 'serialNumber' => ['Text'], |
437 | 437 | 'sku' => ['Text'], |
438 | 438 | 'validFrom' => ['DateTime'], |
@@ -538,7 +538,7 @@ discard block |
||
538 | 538 | { |
539 | 539 | $rules = parent::rules(); |
540 | 540 | $rules = array_merge($rules, [ |
541 | - [['acceptedPaymentMethod','advanceBookingRequirement','areaServed','availability','availabilityEnds','availabilityStarts','availableAtOrFrom','availableDeliveryMethod','businessFunction','deliveryLeadTime','eligibleCustomerType','eligibleDuration','eligibleQuantity','eligibleRegion','eligibleTransactionVolume','gtin12','gtin13','gtin14','gtin8','includesObject','ineligibleRegion','inventoryLevel','itemCondition','itemOffered','mpn','priceSpecification','seller','serialNumber','sku','validFrom','validThrough','warranty'], 'validateJsonSchema'], |
|
541 | + [['acceptedPaymentMethod', 'advanceBookingRequirement', 'areaServed', 'availability', 'availabilityEnds', 'availabilityStarts', 'availableAtOrFrom', 'availableDeliveryMethod', 'businessFunction', 'deliveryLeadTime', 'eligibleCustomerType', 'eligibleDuration', 'eligibleQuantity', 'eligibleRegion', 'eligibleTransactionVolume', 'gtin12', 'gtin13', 'gtin14', 'gtin8', 'includesObject', 'ineligibleRegion', 'inventoryLevel', 'itemCondition', 'itemOffered', 'mpn', 'priceSpecification', 'seller', 'serialNumber', 'sku', 'validFrom', 'validThrough', 'warranty'], 'validateJsonSchema'], |
|
542 | 542 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
543 | 543 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
544 | 544 | ]); |
@@ -172,8 +172,8 @@ discard block |
||
172 | 172 | static protected $_schemaPropertyExpectedTypes = [ |
173 | 173 | 'engineDisplacement' => ['QuantitativeValue'], |
174 | 174 | 'enginePower' => ['QuantitativeValue'], |
175 | - 'engineType' => ['QualitativeValue','Text','URL'], |
|
176 | - 'fuelType' => ['QualitativeValue','Text','URL'], |
|
175 | + 'engineType' => ['QualitativeValue', 'Text', 'URL'], |
|
176 | + 'fuelType' => ['QualitativeValue', 'Text', 'URL'], |
|
177 | 177 | 'torque' => ['QuantitativeValue'] |
178 | 178 | ]; |
179 | 179 | |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | { |
249 | 249 | $rules = parent::rules(); |
250 | 250 | $rules = array_merge($rules, [ |
251 | - [['engineDisplacement','enginePower','engineType','fuelType','torque'], 'validateJsonSchema'], |
|
251 | + [['engineDisplacement', 'enginePower', 'engineType', 'fuelType', 'torque'], 'validateJsonSchema'], |
|
252 | 252 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
253 | 253 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
254 | 254 | ]); |
@@ -219,7 +219,7 @@ |
||
219 | 219 | { |
220 | 220 | $rules = parent::rules(); |
221 | 221 | $rules = array_merge($rules, [ |
222 | - [['dropoffLocation','dropoffTime','pickupLocation','pickupTime'], 'validateJsonSchema'], |
|
222 | + [['dropoffLocation', 'dropoffTime', 'pickupLocation', 'pickupTime'], 'validateJsonSchema'], |
|
223 | 223 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
224 | 224 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
225 | 225 | ]); |
@@ -147,10 +147,10 @@ discard block |
||
147 | 147 | * @var array |
148 | 148 | */ |
149 | 149 | static protected $_schemaPropertyExpectedTypes = [ |
150 | - 'pageEnd' => ['Integer','Text'], |
|
151 | - 'pageStart' => ['Integer','Text'], |
|
150 | + 'pageEnd' => ['Integer', 'Text'], |
|
151 | + 'pageStart' => ['Integer', 'Text'], |
|
152 | 152 | 'pagination' => ['Text'], |
153 | - 'volumeNumber' => ['Integer','Text'] |
|
153 | + 'volumeNumber' => ['Integer', 'Text'] |
|
154 | 154 | ]; |
155 | 155 | |
156 | 156 | /** |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | { |
224 | 224 | $rules = parent::rules(); |
225 | 225 | $rules = array_merge($rules, [ |
226 | - [['pageEnd','pageStart','pagination','volumeNumber'], 'validateJsonSchema'], |
|
226 | + [['pageEnd', 'pageStart', 'pagination', 'volumeNumber'], '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 | ]); |
@@ -136,8 +136,8 @@ discard block |
||
136 | 136 | */ |
137 | 137 | static protected $_schemaPropertyExpectedTypes = [ |
138 | 138 | 'album' => ['MusicAlbum'], |
139 | - 'genre' => ['Text','URL'], |
|
140 | - 'track' => ['ItemList','MusicRecording'] |
|
139 | + 'genre' => ['Text', 'URL'], |
|
140 | + 'track' => ['ItemList', 'MusicRecording'] |
|
141 | 141 | ]; |
142 | 142 | |
143 | 143 | /** |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | { |
210 | 210 | $rules = parent::rules(); |
211 | 211 | $rules = array_merge($rules, [ |
212 | - [['album','genre','track'], 'validateJsonSchema'], |
|
212 | + [['album', 'genre', 'track'], 'validateJsonSchema'], |
|
213 | 213 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
214 | 214 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
215 | 215 | ]); |
@@ -218,7 +218,7 @@ |
||
218 | 218 | { |
219 | 219 | $rules = parent::rules(); |
220 | 220 | $rules = array_merge($rules, [ |
221 | - [['assemblyVersion','executableLibraryName','programmingModel','targetPlatform'], 'validateJsonSchema'], |
|
221 | + [['assemblyVersion', 'executableLibraryName', 'programmingModel', 'targetPlatform'], 'validateJsonSchema'], |
|
222 | 222 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
223 | 223 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
224 | 224 | ]); |