@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * @var array |
135 | 135 | */ |
136 | 136 | static protected $_schemaPropertyExpectedTypes = [ |
137 | - 'bed' => ['BedDetails','BedType','Text'], |
|
137 | + 'bed' => ['BedDetails', 'BedType', 'Text'], |
|
138 | 138 | 'occupancy' => ['QuantitativeValue'] |
139 | 139 | ]; |
140 | 140 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | { |
207 | 207 | $rules = parent::rules(); |
208 | 208 | $rules = array_merge($rules, [ |
209 | - [['bed','occupancy'], 'validateJsonSchema'], |
|
209 | + [['bed', 'occupancy'], 'validateJsonSchema'], |
|
210 | 210 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
211 | 211 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
212 | 212 | ]); |
@@ -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 | ]); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | 'orderItemNumber' => ['Text'], |
156 | 156 | 'orderItemStatus' => ['OrderStatus'], |
157 | 157 | 'orderQuantity' => ['Number'], |
158 | - 'orderedItem' => ['OrderItem','Product'] |
|
158 | + 'orderedItem' => ['OrderItem', 'Product'] |
|
159 | 159 | ]; |
160 | 160 | |
161 | 161 | /** |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | { |
230 | 230 | $rules = parent::rules(); |
231 | 231 | $rules = array_merge($rules, [ |
232 | - [['orderDelivery','orderItemNumber','orderItemStatus','orderQuantity','orderedItem'], 'validateJsonSchema'], |
|
232 | + [['orderDelivery', 'orderItemNumber', 'orderItemStatus', 'orderQuantity', 'orderedItem'], 'validateJsonSchema'], |
|
233 | 233 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
234 | 234 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
235 | 235 | ]); |
@@ -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 | ]); |
@@ -217,9 +217,9 @@ discard block |
||
217 | 217 | 'alternateName' => ['Text'], |
218 | 218 | 'description' => ['Text'], |
219 | 219 | 'disambiguatingDescription' => ['Text'], |
220 | - 'identifier' => ['PropertyValue','Text','URL'], |
|
221 | - 'image' => ['ImageObject','URL'], |
|
222 | - 'mainEntityOfPage' => ['CreativeWork','URL'], |
|
220 | + 'identifier' => ['PropertyValue', 'Text', 'URL'], |
|
221 | + 'image' => ['ImageObject', 'URL'], |
|
222 | + 'mainEntityOfPage' => ['CreativeWork', 'URL'], |
|
223 | 223 | 'name' => ['Text'], |
224 | 224 | 'potentialAction' => ['Action'], |
225 | 225 | 'sameAs' => ['URL'], |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | { |
304 | 304 | $rules = parent::rules(); |
305 | 305 | $rules = array_merge($rules, [ |
306 | - [['additionalType','alternateName','description','disambiguatingDescription','identifier','image','mainEntityOfPage','name','potentialAction','sameAs','url'], 'validateJsonSchema'], |
|
306 | + [['additionalType', 'alternateName', 'description', 'disambiguatingDescription', 'identifier', 'image', 'mainEntityOfPage', 'name', 'potentialAction', 'sameAs', 'url'], 'validateJsonSchema'], |
|
307 | 307 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
308 | 308 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
309 | 309 | ]); |
@@ -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 | ]); |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | * @var array |
253 | 253 | */ |
254 | 254 | static protected $_schemaPropertyExpectedTypes = [ |
255 | - 'aircraft' => ['Text','Vehicle'], |
|
255 | + 'aircraft' => ['Text', 'Vehicle'], |
|
256 | 256 | 'arrivalAirport' => ['Airport'], |
257 | 257 | 'arrivalGate' => ['Text'], |
258 | 258 | 'arrivalTerminal' => ['Text'], |
@@ -262,12 +262,12 @@ discard block |
||
262 | 262 | 'departureGate' => ['Text'], |
263 | 263 | 'departureTerminal' => ['Text'], |
264 | 264 | 'departureTime' => ['DateTime'], |
265 | - 'estimatedFlightDuration' => ['Duration','Text'], |
|
266 | - 'flightDistance' => ['Distance','Text'], |
|
265 | + 'estimatedFlightDuration' => ['Duration', 'Text'], |
|
266 | + 'flightDistance' => ['Distance', 'Text'], |
|
267 | 267 | 'flightNumber' => ['Text'], |
268 | 268 | 'mealService' => ['Text'], |
269 | - 'provider' => ['Organization','Person'], |
|
270 | - 'seller' => ['Organization','Person'], |
|
269 | + 'provider' => ['Organization', 'Person'], |
|
270 | + 'seller' => ['Organization', 'Person'], |
|
271 | 271 | 'webCheckinTime' => ['DateTime'] |
272 | 272 | ]; |
273 | 273 | |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | { |
355 | 355 | $rules = parent::rules(); |
356 | 356 | $rules = array_merge($rules, [ |
357 | - [['aircraft','arrivalAirport','arrivalGate','arrivalTerminal','arrivalTime','boardingPolicy','departureAirport','departureGate','departureTerminal','departureTime','estimatedFlightDuration','flightDistance','flightNumber','mealService','provider','seller','webCheckinTime'], 'validateJsonSchema'], |
|
357 | + [['aircraft', 'arrivalAirport', 'arrivalGate', 'arrivalTerminal', 'arrivalTime', 'boardingPolicy', 'departureAirport', 'departureGate', 'departureTerminal', 'departureTime', 'estimatedFlightDuration', 'flightDistance', 'flightNumber', 'mealService', 'provider', 'seller', 'webCheckinTime'], 'validateJsonSchema'], |
|
358 | 358 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
359 | 359 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
360 | 360 | ]); |