Passed
Pull Request — v3 (#436)
by Ben
07:13
created
src/models/jsonld/TVSeries.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         'countryOfOrigin' => ['Country'],
203 203
         'director' => ['Person'],
204 204
         'episode' => ['Episode'],
205
-        'musicBy' => ['MusicGroup','Person'],
205
+        'musicBy' => ['MusicGroup', 'Person'],
206 206
         'numberOfEpisodes' => ['Integer'],
207 207
         'numberOfSeasons' => ['Integer'],
208 208
         'productionCompany' => ['Organization'],
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     {
286 286
         $rules = parent::rules();
287 287
         $rules = array_merge($rules, [
288
-            [['actor','containsSeason','countryOfOrigin','director','episode','musicBy','numberOfEpisodes','numberOfSeasons','productionCompany','trailer'], 'validateJsonSchema'],
288
+            [['actor', 'containsSeason', 'countryOfOrigin', 'director', 'episode', 'musicBy', 'numberOfEpisodes', 'numberOfSeasons', 'productionCompany', 'trailer'], 'validateJsonSchema'],
289 289
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
290 290
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
291 291
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/PostalAddress.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * @var array
159 159
      */
160 160
     static protected $_schemaPropertyExpectedTypes = [
161
-        'addressCountry' => ['Country','Text'],
161
+        'addressCountry' => ['Country', 'Text'],
162 162
         'addressLocality' => ['Text'],
163 163
         'addressRegion' => ['Text'],
164 164
         'postOfficeBoxNumber' => ['Text'],
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     {
239 239
         $rules = parent::rules();
240 240
         $rules = array_merge($rules, [
241
-            [['addressCountry','addressLocality','addressRegion','postOfficeBoxNumber','postalCode','streetAddress'], 'validateJsonSchema'],
241
+            [['addressCountry', 'addressLocality', 'addressRegion', 'postOfficeBoxNumber', 'postalCode', 'streetAddress'], 'validateJsonSchema'],
242 242
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
243 243
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
244 244
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/Offer.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -486,41 +486,41 @@  discard block
 block discarded – undo
486 486
      * @var array
487 487
      */
488 488
     static protected $_schemaPropertyExpectedTypes = [
489
-        'acceptedPaymentMethod' => ['LoanOrCredit','PaymentMethod'],
489
+        'acceptedPaymentMethod' => ['LoanOrCredit', 'PaymentMethod'],
490 490
         'addOn' => ['Offer'],
491 491
         'advanceBookingRequirement' => ['QuantitativeValue'],
492 492
         'aggregateRating' => ['AggregateRating'],
493
-        'areaServed' => ['AdministrativeArea','GeoShape','Place','Text'],
493
+        'areaServed' => ['AdministrativeArea', 'GeoShape', 'Place', 'Text'],
494 494
         'availability' => ['ItemAvailability'],
495 495
         'availabilityEnds' => ['DateTime'],
496 496
         'availabilityStarts' => ['DateTime'],
497 497
         'availableAtOrFrom' => ['Place'],
498 498
         'availableDeliveryMethod' => ['DeliveryMethod'],
499 499
         'businessFunction' => ['BusinessFunction'],
500
-        'category' => ['PhysicalActivityCategory','Text','Thing'],
500
+        'category' => ['PhysicalActivityCategory', 'Text', 'Thing'],
501 501
         'deliveryLeadTime' => ['QuantitativeValue'],
502 502
         'eligibleCustomerType' => ['BusinessEntityType'],
503 503
         'eligibleDuration' => ['QuantitativeValue'],
504 504
         'eligibleQuantity' => ['QuantitativeValue'],
505
-        'eligibleRegion' => ['GeoShape','Place','Text'],
505
+        'eligibleRegion' => ['GeoShape', 'Place', 'Text'],
506 506
         'eligibleTransactionVolume' => ['PriceSpecification'],
507 507
         'gtin12' => ['Text'],
508 508
         'gtin13' => ['Text'],
509 509
         'gtin14' => ['Text'],
510 510
         'gtin8' => ['Text'],
511 511
         'includesObject' => ['TypeAndQuantityNode'],
512
-        'ineligibleRegion' => ['GeoShape','Place','Text'],
512
+        'ineligibleRegion' => ['GeoShape', 'Place', 'Text'],
513 513
         'inventoryLevel' => ['QuantitativeValue'],
514 514
         'itemCondition' => ['OfferItemCondition'],
515
-        'itemOffered' => ['Product','Service'],
515
+        'itemOffered' => ['Product', 'Service'],
516 516
         'mpn' => ['Text'],
517
-        'offeredBy' => ['Organization','Person'],
518
-        'price' => ['Number','Text'],
517
+        'offeredBy' => ['Organization', 'Person'],
518
+        'price' => ['Number', 'Text'],
519 519
         'priceCurrency' => ['Text'],
520 520
         'priceSpecification' => ['PriceSpecification'],
521 521
         'priceValidUntil' => ['Date'],
522 522
         'review' => ['Review'],
523
-        'seller' => ['Organization','Person'],
523
+        'seller' => ['Organization', 'Person'],
524 524
         'serialNumber' => ['Text'],
525 525
         'sku' => ['Text'],
526 526
         'validFrom' => ['DateTime'],
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
     {
635 635
         $rules = parent::rules();
636 636
         $rules = array_merge($rules, [
637
-            [['acceptedPaymentMethod','addOn','advanceBookingRequirement','aggregateRating','areaServed','availability','availabilityEnds','availabilityStarts','availableAtOrFrom','availableDeliveryMethod','businessFunction','category','deliveryLeadTime','eligibleCustomerType','eligibleDuration','eligibleQuantity','eligibleRegion','eligibleTransactionVolume','gtin12','gtin13','gtin14','gtin8','includesObject','ineligibleRegion','inventoryLevel','itemCondition','itemOffered','mpn','offeredBy','price','priceCurrency','priceSpecification','priceValidUntil','review','seller','serialNumber','sku','validFrom','validThrough','warranty'], 'validateJsonSchema'],
637
+            [['acceptedPaymentMethod', 'addOn', 'advanceBookingRequirement', 'aggregateRating', 'areaServed', 'availability', 'availabilityEnds', 'availabilityStarts', 'availableAtOrFrom', 'availableDeliveryMethod', 'businessFunction', 'category', 'deliveryLeadTime', 'eligibleCustomerType', 'eligibleDuration', 'eligibleQuantity', 'eligibleRegion', 'eligibleTransactionVolume', 'gtin12', 'gtin13', 'gtin14', 'gtin8', 'includesObject', 'ineligibleRegion', 'inventoryLevel', 'itemCondition', 'itemOffered', 'mpn', 'offeredBy', 'price', 'priceCurrency', 'priceSpecification', 'priceValidUntil', 'review', 'seller', 'serialNumber', 'sku', 'validFrom', 'validThrough', 'warranty'], 'validateJsonSchema'],
638 638
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
639 639
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
640 640
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/ServiceChannel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/PriceSpecification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         'eligibleTransactionVolume' => ['PriceSpecification'],
206 206
         'maxPrice' => ['Number'],
207 207
         'minPrice' => ['Number'],
208
-        'price' => ['Number','Text'],
208
+        'price' => ['Number', 'Text'],
209 209
         'priceCurrency' => ['Text'],
210 210
         'validFrom' => ['DateTime'],
211 211
         'validThrough' => ['DateTime'],
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
     {
288 288
         $rules = parent::rules();
289 289
         $rules = array_merge($rules, [
290
-            [['eligibleQuantity','eligibleTransactionVolume','maxPrice','minPrice','price','priceCurrency','validFrom','validThrough','valueAddedTaxIncluded'], 'validateJsonSchema'],
290
+            [['eligibleQuantity', 'eligibleTransactionVolume', 'maxPrice', 'minPrice', 'price', 'priceCurrency', 'validFrom', 'validThrough', 'valueAddedTaxIncluded'], 'validateJsonSchema'],
291 291
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
292 292
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
293 293
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/PropertyValue.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -207,13 +207,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/UnitPriceSpecification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/DataFeedItem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,9 +144,9 @@  discard block
 block discarded – undo
144 144
      * @var array
145 145
      */
146 146
     static protected $_schemaPropertyExpectedTypes = [
147
-        'dateCreated' => ['Date','DateTime'],
147
+        'dateCreated' => ['Date', 'DateTime'],
148 148
         'dateDeleted' => ['DateTime'],
149
-        'dateModified' => ['Date','DateTime'],
149
+        'dateModified' => ['Date', 'DateTime'],
150 150
         'item' => ['Thing']
151 151
     ];
152 152
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     {
221 221
         $rules = parent::rules();
222 222
         $rules = array_merge($rules, [
223
-            [['dateCreated','dateDeleted','dateModified','item'], 'validateJsonSchema'],
223
+            [['dateCreated', 'dateDeleted', 'dateModified', 'item'], 'validateJsonSchema'],
224 224
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
225 225
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
226 226
         ]);
Please login to merge, or discard this patch.
src/models/MetaSiteVars.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,10 +207,10 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.