Passed
Pull Request — develop (#257)
by Timothy
09:13 queued 03:03
created
src/models/jsonld/HotelRoom.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/BreadcrumbList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/TakeAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/OrderItem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/Permit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/Duration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -217,9 +217,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/Demand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -406,9 +406,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/EngineSpecification.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/Flight.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.