Passed
Pull Request — develop (#257)
by Timothy
09:13 queued 03:03
created
src/models/jsonld/RentAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      * @var array
129 129
      */
130 130
     static protected $_schemaPropertyExpectedTypes = [
131
-        'landlord' => ['Organization','Person'],
131
+        'landlord' => ['Organization', 'Person'],
132 132
         'realEstateAgent' => ['RealEstateAgent']
133 133
     ];
134 134
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     {
201 201
         $rules = parent::rules();
202 202
         $rules = array_merge($rules, [
203
-            [['landlord','realEstateAgent'], 'validateJsonSchema'],
203
+            [['landlord', 'realEstateAgent'], 'validateJsonSchema'],
204 204
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
205 205
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
206 206
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/Person.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -547,15 +547,15 @@  discard block
 block discarded – undo
547 547
      */
548 548
     static protected $_schemaPropertyExpectedTypes = [
549 549
         'additionalName' => ['Text'],
550
-        'address' => ['PostalAddress','Text'],
550
+        'address' => ['PostalAddress', 'Text'],
551 551
         'affiliation' => ['Organization'],
552
-        'alumniOf' => ['EducationalOrganization','Organization'],
552
+        'alumniOf' => ['EducationalOrganization', 'Organization'],
553 553
         'award' => ['Text'],
554 554
         'birthDate' => ['Date'],
555 555
         'birthPlace' => ['Place'],
556
-        'brand' => ['Brand','Organization'],
556
+        'brand' => ['Brand', 'Organization'],
557 557
         'children' => ['Person'],
558
-        'colleague' => ['Person','URL'],
558
+        'colleague' => ['Person', 'URL'],
559 559
         'contactPoint' => ['ContactPoint'],
560 560
         'deathDate' => ['Date'],
561 561
         'deathPlace' => ['Place'],
@@ -564,38 +564,38 @@  discard block
 block discarded – undo
564 564
         'familyName' => ['Text'],
565 565
         'faxNumber' => ['Text'],
566 566
         'follows' => ['Person'],
567
-        'funder' => ['Organization','Person'],
568
-        'gender' => ['GenderType','Text'],
567
+        'funder' => ['Organization', 'Person'],
568
+        'gender' => ['GenderType', 'Text'],
569 569
         'givenName' => ['Text'],
570 570
         'globalLocationNumber' => ['Text'],
571 571
         'hasOfferCatalog' => ['OfferCatalog'],
572 572
         'hasPOS' => ['Place'],
573
-        'height' => ['Distance','QuantitativeValue'],
574
-        'homeLocation' => ['ContactPoint','Place'],
573
+        'height' => ['Distance', 'QuantitativeValue'],
574
+        'homeLocation' => ['ContactPoint', 'Place'],
575 575
         'honorificPrefix' => ['Text'],
576 576
         'honorificSuffix' => ['Text'],
577 577
         'isicV4' => ['Text'],
578 578
         'jobTitle' => ['Text'],
579 579
         'knows' => ['Person'],
580 580
         'makesOffer' => ['Offer'],
581
-        'memberOf' => ['Organization','ProgramMembership'],
581
+        'memberOf' => ['Organization', 'ProgramMembership'],
582 582
         'naics' => ['Text'],
583 583
         'nationality' => ['Country'],
584
-        'netWorth' => ['MonetaryAmount','PriceSpecification'],
585
-        'owns' => ['OwnershipInfo','Product'],
584
+        'netWorth' => ['MonetaryAmount', 'PriceSpecification'],
585
+        'owns' => ['OwnershipInfo', 'Product'],
586 586
         'parent' => ['Person'],
587 587
         'performerIn' => ['Event'],
588
-        'publishingPrinciples' => ['CreativeWork','URL'],
588
+        'publishingPrinciples' => ['CreativeWork', 'URL'],
589 589
         'relatedTo' => ['Person'],
590 590
         'seeks' => ['Demand'],
591 591
         'sibling' => ['Person'],
592
-        'sponsor' => ['Organization','Person'],
592
+        'sponsor' => ['Organization', 'Person'],
593 593
         'spouse' => ['Person'],
594 594
         'taxID' => ['Text'],
595 595
         'telephone' => ['Text'],
596 596
         'vatID' => ['Text'],
597 597
         'weight' => ['QuantitativeValue'],
598
-        'workLocation' => ['ContactPoint','Place'],
598
+        'workLocation' => ['ContactPoint', 'Place'],
599 599
         'worksFor' => ['Organization']
600 600
     ];
601 601
 
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
     {
717 717
         $rules = parent::rules();
718 718
         $rules = array_merge($rules, [
719
-            [['additionalName','address','affiliation','alumniOf','award','birthDate','birthPlace','brand','children','colleague','contactPoint','deathDate','deathPlace','duns','email','familyName','faxNumber','follows','funder','gender','givenName','globalLocationNumber','hasOfferCatalog','hasPOS','height','homeLocation','honorificPrefix','honorificSuffix','isicV4','jobTitle','knows','makesOffer','memberOf','naics','nationality','netWorth','owns','parent','performerIn','publishingPrinciples','relatedTo','seeks','sibling','sponsor','spouse','taxID','telephone','vatID','weight','workLocation','worksFor'], 'validateJsonSchema'],
719
+            [['additionalName', 'address', 'affiliation', 'alumniOf', 'award', 'birthDate', 'birthPlace', 'brand', 'children', 'colleague', 'contactPoint', 'deathDate', 'deathPlace', 'duns', 'email', 'familyName', 'faxNumber', 'follows', 'funder', 'gender', 'givenName', 'globalLocationNumber', 'hasOfferCatalog', 'hasPOS', 'height', 'homeLocation', 'honorificPrefix', 'honorificSuffix', 'isicV4', 'jobTitle', 'knows', 'makesOffer', 'memberOf', 'naics', 'nationality', 'netWorth', 'owns', 'parent', 'performerIn', 'publishingPrinciples', 'relatedTo', 'seeks', 'sibling', 'sponsor', 'spouse', 'taxID', 'telephone', 'vatID', 'weight', 'workLocation', 'worksFor'], 'validateJsonSchema'],
720 720
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
721 721
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
722 722
         ]);
Please login to merge, or discard this patch.
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/HairSalon.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 namespace nystudio107\seomatic\models\jsonld;
13 13
 
14
-use nystudio107\seomatic\models\jsonld\HealthAndBeautyBusiness ;
14
+use nystudio107\seomatic\models\jsonld\HealthAndBeautyBusiness;
15 15
 
16 16
 /**
17 17
  * HairSalon - A hair salon.
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     {
227 227
         $rules = parent::rules();
228 228
         $rules = array_merge($rules, [
229
-            [['currenciesAccepted','openingHours','paymentAccepted','priceRange'], 'validateJsonSchema'],
229
+            [['currenciesAccepted', 'openingHours', 'paymentAccepted', 'priceRange'], '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/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/CourseInstance.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      * @var array
133 133
      */
134 134
     static protected $_schemaPropertyExpectedTypes = [
135
-        'courseMode' => ['Text','URL'],
135
+        'courseMode' => ['Text', 'URL'],
136 136
         'instructor' => ['Person']
137 137
     ];
138 138
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     {
205 205
         $rules = parent::rules();
206 206
         $rules = array_merge($rules, [
207
-            [['courseMode','instructor'], 'validateJsonSchema'],
207
+            [['courseMode', 'instructor'], '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.