Passed
Pull Request — develop (#257)
by Timothy
09:13 queued 03:03
created
src/models/jsonld/Product.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -403,24 +403,24 @@  discard block
 block discarded – undo
403 403
         'aggregateRating' => ['AggregateRating'],
404 404
         'audience' => ['Audience'],
405 405
         'award' => ['Text'],
406
-        'brand' => ['Brand','Organization'],
407
-        'category' => ['PhysicalActivityCategory','Text','Thing'],
406
+        'brand' => ['Brand', 'Organization'],
407
+        'category' => ['PhysicalActivityCategory', 'Text', 'Thing'],
408 408
         'color' => ['Text'],
409
-        'depth' => ['Distance','QuantitativeValue'],
409
+        'depth' => ['Distance', 'QuantitativeValue'],
410 410
         'gtin12' => ['Text'],
411 411
         'gtin13' => ['Text'],
412 412
         'gtin14' => ['Text'],
413 413
         'gtin8' => ['Text'],
414
-        'height' => ['Distance','QuantitativeValue'],
414
+        'height' => ['Distance', 'QuantitativeValue'],
415 415
         'isAccessoryOrSparePartFor' => ['Product'],
416 416
         'isConsumableFor' => ['Product'],
417
-        'isRelatedTo' => ['Product','Service'],
418
-        'isSimilarTo' => ['Product','Service'],
417
+        'isRelatedTo' => ['Product', 'Service'],
418
+        'isSimilarTo' => ['Product', 'Service'],
419 419
         'itemCondition' => ['OfferItemCondition'],
420
-        'logo' => ['ImageObject','URL'],
420
+        'logo' => ['ImageObject', 'URL'],
421 421
         'manufacturer' => ['Organization'],
422
-        'material' => ['Product','Text','URL'],
423
-        'model' => ['ProductModel','Text'],
422
+        'material' => ['Product', 'Text', 'URL'],
423
+        'model' => ['ProductModel', 'Text'],
424 424
         'mpn' => ['Text'],
425 425
         'offers' => ['Offer'],
426 426
         'productID' => ['Text'],
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
         'review' => ['Review'],
431 431
         'sku' => ['Text'],
432 432
         'weight' => ['QuantitativeValue'],
433
-        'width' => ['Distance','QuantitativeValue']
433
+        'width' => ['Distance', 'QuantitativeValue']
434 434
     ];
435 435
 
436 436
     /**
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
     {
532 532
         $rules = parent::rules();
533 533
         $rules = array_merge($rules, [
534
-            [['additionalProperty','aggregateRating','audience','award','brand','category','color','depth','gtin12','gtin13','gtin14','gtin8','height','isAccessoryOrSparePartFor','isConsumableFor','isRelatedTo','isSimilarTo','itemCondition','logo','manufacturer','material','model','mpn','offers','productID','productionDate','purchaseDate','releaseDate','review','sku','weight','width'], 'validateJsonSchema'],
534
+            [['additionalProperty', 'aggregateRating', 'audience', 'award', 'brand', 'category', 'color', 'depth', 'gtin12', 'gtin13', 'gtin14', 'gtin8', 'height', 'isAccessoryOrSparePartFor', 'isConsumableFor', 'isRelatedTo', 'isSimilarTo', 'itemCondition', 'logo', 'manufacturer', 'material', 'model', 'mpn', 'offers', 'productID', 'productionDate', 'purchaseDate', 'releaseDate', 'review', 'sku', 'weight', 'width'], 'validateJsonSchema'],
535 535
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
536 536
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
537 537
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/DataFeed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
      * @var array
119 119
      */
120 120
     static protected $_schemaPropertyExpectedTypes = [
121
-        'dataFeedElement' => ['DataFeedItem','Text','Thing']
121
+        'dataFeedElement' => ['DataFeedItem', 'Text', 'Thing']
122 122
     ];
123 123
 
124 124
     /**
Please login to merge, or discard this patch.
src/models/jsonld/Movie.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,9 +185,9 @@  discard block
 block discarded – undo
185 185
         'countryOfOrigin' => ['Country'],
186 186
         'director' => ['Person'],
187 187
         'duration' => ['Duration'],
188
-        'musicBy' => ['MusicGroup','Person'],
188
+        'musicBy' => ['MusicGroup', 'Person'],
189 189
         'productionCompany' => ['Organization'],
190
-        'subtitleLanguage' => ['Language','Text'],
190
+        'subtitleLanguage' => ['Language', 'Text'],
191 191
         'trailer' => ['VideoObject']
192 192
     ];
193 193
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     {
266 266
         $rules = parent::rules();
267 267
         $rules = array_merge($rules, [
268
-            [['actor','countryOfOrigin','director','duration','musicBy','productionCompany','subtitleLanguage','trailer'], 'validateJsonSchema'],
268
+            [['actor', 'countryOfOrigin', 'director', 'duration', 'musicBy', 'productionCompany', 'subtitleLanguage', 'trailer'], 'validateJsonSchema'],
269 269
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
270 270
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
271 271
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/WriteAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
      * @var array
120 120
      */
121 121
     static protected $_schemaPropertyExpectedTypes = [
122
-        'inLanguage' => ['Language','Text']
122
+        'inLanguage' => ['Language', 'Text']
123 123
     ];
124 124
 
125 125
     /**
Please login to merge, or discard this patch.
src/models/jsonld/MusicRelease.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
      */
163 163
     static protected $_schemaPropertyExpectedTypes = [
164 164
         'catalogNumber' => ['Text'],
165
-        'creditedTo' => ['Organization','Person'],
165
+        'creditedTo' => ['Organization', 'Person'],
166 166
         'duration' => ['Duration'],
167 167
         'musicReleaseFormat' => ['MusicReleaseFormatType'],
168 168
         'recordLabel' => ['Organization'],
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     {
242 242
         $rules = parent::rules();
243 243
         $rules = array_merge($rules, [
244
-            [['catalogNumber','creditedTo','duration','musicReleaseFormat','recordLabel','releaseOf'], 'validateJsonSchema'],
244
+            [['catalogNumber', 'creditedTo', 'duration', 'musicReleaseFormat', 'recordLabel', 'releaseOf'], 'validateJsonSchema'],
245 245
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
246 246
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
247 247
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/MusicComposition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      * @var array
191 191
      */
192 192
     static protected $_schemaPropertyExpectedTypes = [
193
-        'composer' => ['Organization','Person'],
193
+        'composer' => ['Organization', 'Person'],
194 194
         'firstPerformance' => ['Event'],
195 195
         'includedComposition' => ['MusicComposition'],
196 196
         'iswcCode' => ['Text'],
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     {
279 279
         $rules = parent::rules();
280 280
         $rules = array_merge($rules, [
281
-            [['composer','firstPerformance','includedComposition','iswcCode','lyricist','lyrics','musicArrangement','musicCompositionForm','musicalKey','recordedAs'], 'validateJsonSchema'],
281
+            [['composer', 'firstPerformance', 'includedComposition', 'iswcCode', 'lyricist', 'lyrics', 'musicArrangement', 'musicCompositionForm', 'musicalKey', 'recordedAs'], 'validateJsonSchema'],
282 282
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
283 283
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
284 284
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/TouristAttraction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
      * @var array
133 133
      */
134 134
     static protected $_schemaPropertyExpectedTypes = [
135
-        'availableLanguage' => ['Language','Text'],
136
-        'touristType' => ['Audience','Text']
135
+        'availableLanguage' => ['Language', 'Text'],
136
+        'touristType' => ['Audience', 'Text']
137 137
     ];
138 138
 
139 139
     /**
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     {
205 205
         $rules = parent::rules();
206 206
         $rules = array_merge($rules, [
207
-            [['availableLanguage','touristType'], 'validateJsonSchema'],
207
+            [['availableLanguage', 'touristType'], 'validateJsonSchema'],
208 208
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
209 209
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
210 210
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/EntryPoint.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
      */
163 163
     static protected $_schemaPropertyExpectedTypes = [
164 164
         'actionApplication' => ['SoftwareApplication'],
165
-        'actionPlatform' => ['Text','URL'],
165
+        'actionPlatform' => ['Text', 'URL'],
166 166
         'contentType' => ['Text'],
167 167
         'encodingType' => ['Text'],
168 168
         'httpMethod' => ['Text'],
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     {
242 242
         $rules = parent::rules();
243 243
         $rules = array_merge($rules, [
244
-            [['actionApplication','actionPlatform','contentType','encodingType','httpMethod','urlTemplate'], 'validateJsonSchema'],
244
+            [['actionApplication', 'actionPlatform', 'contentType', 'encodingType', 'httpMethod', 'urlTemplate'], 'validateJsonSchema'],
245 245
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
246 246
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
247 247
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/InteractionCounter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      * @var array
139 139
      */
140 140
     static protected $_schemaPropertyExpectedTypes = [
141
-        'interactionService' => ['SoftwareApplication','WebSite'],
141
+        'interactionService' => ['SoftwareApplication', 'WebSite'],
142 142
         'interactionType' => ['Action'],
143 143
         'userInteractionCount' => ['Integer']
144 144
     ];
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     {
213 213
         $rules = parent::rules();
214 214
         $rules = array_merge($rules, [
215
-            [['interactionService','interactionType','userInteractionCount'], 'validateJsonSchema'],
215
+            [['interactionService', 'interactionType', 'userInteractionCount'], 'validateJsonSchema'],
216 216
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
217 217
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
218 218
         ]);
Please login to merge, or discard this patch.