@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -64,35 +64,35 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @var array |
66 | 66 | */ |
67 | - static public $schemaPropertyNames = []; |
|
67 | + static public $schemaPropertyNames = [ ]; |
|
68 | 68 | |
69 | 69 | /** |
70 | 70 | * The Schema.org composed Property Expected Types |
71 | 71 | * |
72 | 72 | * @var array |
73 | 73 | */ |
74 | - static public $schemaPropertyExpectedTypes = []; |
|
74 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
75 | 75 | |
76 | 76 | /** |
77 | 77 | * The Schema.org composed Property Descriptions |
78 | 78 | * |
79 | 79 | * @var array |
80 | 80 | */ |
81 | - static public $schemaPropertyDescriptions = []; |
|
81 | + static public $schemaPropertyDescriptions = [ ]; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * The Schema.org composed Google Required Schema for this type |
85 | 85 | * |
86 | 86 | * @var array |
87 | 87 | */ |
88 | - static public $googleRequiredSchema = []; |
|
88 | + static public $googleRequiredSchema = [ ]; |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * The Schema.org composed Google Recommended Schema for this type |
92 | 92 | * |
93 | 93 | * @var array |
94 | 94 | */ |
95 | - static public $googleRecommendedSchema = []; |
|
95 | + static public $googleRecommendedSchema = [ ]; |
|
96 | 96 | |
97 | 97 | // Public Properties |
98 | 98 | // ========================================================================= |
@@ -163,11 +163,11 @@ discard block |
||
163 | 163 | * @var array |
164 | 164 | */ |
165 | 165 | static protected $_schemaPropertyExpectedTypes = [ |
166 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
167 | - 'floorSize' => ['QuantitativeValue'], |
|
168 | - 'numberOfRooms' => ['Number','QuantitativeValue'], |
|
169 | - 'permittedUsage' => ['Text'], |
|
170 | - 'petsAllowed' => ['Boolean','Text'] |
|
166 | + 'amenityFeature' => [ 'LocationFeatureSpecification' ], |
|
167 | + 'floorSize' => [ 'QuantitativeValue' ], |
|
168 | + 'numberOfRooms' => [ 'Number', 'QuantitativeValue' ], |
|
169 | + 'permittedUsage' => [ 'Text' ], |
|
170 | + 'petsAllowed' => [ 'Boolean', 'Text' ] |
|
171 | 171 | ]; |
172 | 172 | |
173 | 173 | /** |
@@ -241,9 +241,9 @@ discard block |
||
241 | 241 | { |
242 | 242 | $rules = parent::rules(); |
243 | 243 | $rules = array_merge($rules, [ |
244 | - [['amenityFeature','floorSize','numberOfRooms','permittedUsage','petsAllowed'], 'validateJsonSchema'], |
|
245 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
246 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
244 | + [ [ 'amenityFeature', 'floorSize', 'numberOfRooms', 'permittedUsage', 'petsAllowed' ], 'validateJsonSchema' ], |
|
245 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
246 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
247 | 247 | ]); |
248 | 248 | |
249 | 249 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -59,35 +59,35 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @var array |
61 | 61 | */ |
62 | - static public $schemaPropertyNames = []; |
|
62 | + static public $schemaPropertyNames = [ ]; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * The Schema.org composed Property Expected Types |
66 | 66 | * |
67 | 67 | * @var array |
68 | 68 | */ |
69 | - static public $schemaPropertyExpectedTypes = []; |
|
69 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * The Schema.org composed Property Descriptions |
73 | 73 | * |
74 | 74 | * @var array |
75 | 75 | */ |
76 | - static public $schemaPropertyDescriptions = []; |
|
76 | + static public $schemaPropertyDescriptions = [ ]; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * The Schema.org composed Google Required Schema for this type |
80 | 80 | * |
81 | 81 | * @var array |
82 | 82 | */ |
83 | - static public $googleRequiredSchema = []; |
|
83 | + static public $googleRequiredSchema = [ ]; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * The Schema.org composed Google Recommended Schema for this type |
87 | 87 | * |
88 | 88 | * @var array |
89 | 89 | */ |
90 | - static public $googleRecommendedSchema = []; |
|
90 | + static public $googleRecommendedSchema = [ ]; |
|
91 | 91 | |
92 | 92 | // Public Properties |
93 | 93 | // ========================================================================= |
@@ -427,39 +427,39 @@ discard block |
||
427 | 427 | * @var array |
428 | 428 | */ |
429 | 429 | static protected $_schemaPropertyExpectedTypes = [ |
430 | - 'additionalProperty' => ['PropertyValue'], |
|
431 | - 'address' => ['PostalAddress','Text'], |
|
432 | - 'aggregateRating' => ['AggregateRating'], |
|
433 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
434 | - 'branchCode' => ['Text'], |
|
435 | - 'containedInPlace' => ['Place'], |
|
436 | - 'containsPlace' => ['Place'], |
|
437 | - 'event' => ['Event'], |
|
438 | - 'faxNumber' => ['Text'], |
|
439 | - 'geo' => ['GeoCoordinates','GeoShape'], |
|
440 | - 'geospatiallyContains' => ['GeospatialGeometry','Place'], |
|
441 | - 'geospatiallyCoveredBy' => ['GeospatialGeometry','Place'], |
|
442 | - 'geospatiallyCovers' => ['GeospatialGeometry','Place'], |
|
443 | - 'geospatiallyCrosses' => ['GeospatialGeometry','Place'], |
|
444 | - 'geospatiallyDisjoint' => ['GeospatialGeometry','Place'], |
|
445 | - 'geospatiallyEquals' => ['GeospatialGeometry','Place'], |
|
446 | - 'geospatiallyIntersects' => ['GeospatialGeometry','Place'], |
|
447 | - 'geospatiallyOverlaps' => ['GeospatialGeometry','Place'], |
|
448 | - 'geospatiallyTouches' => ['GeospatialGeometry','Place'], |
|
449 | - 'geospatiallyWithin' => ['GeospatialGeometry','Place'], |
|
450 | - 'globalLocationNumber' => ['Text'], |
|
451 | - 'hasMap' => ['Map','URL'], |
|
452 | - 'isAccessibleForFree' => ['Boolean'], |
|
453 | - 'isicV4' => ['Text'], |
|
454 | - 'logo' => ['ImageObject','URL'], |
|
455 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
456 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
457 | - 'photo' => ['ImageObject','Photograph'], |
|
458 | - 'publicAccess' => ['Boolean'], |
|
459 | - 'review' => ['Review'], |
|
460 | - 'smokingAllowed' => ['Boolean'], |
|
461 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
462 | - 'telephone' => ['Text'] |
|
430 | + 'additionalProperty' => [ 'PropertyValue' ], |
|
431 | + 'address' => [ 'PostalAddress', 'Text' ], |
|
432 | + 'aggregateRating' => [ 'AggregateRating' ], |
|
433 | + 'amenityFeature' => [ 'LocationFeatureSpecification' ], |
|
434 | + 'branchCode' => [ 'Text' ], |
|
435 | + 'containedInPlace' => [ 'Place' ], |
|
436 | + 'containsPlace' => [ 'Place' ], |
|
437 | + 'event' => [ 'Event' ], |
|
438 | + 'faxNumber' => [ 'Text' ], |
|
439 | + 'geo' => [ 'GeoCoordinates', 'GeoShape' ], |
|
440 | + 'geospatiallyContains' => [ 'GeospatialGeometry', 'Place' ], |
|
441 | + 'geospatiallyCoveredBy' => [ 'GeospatialGeometry', 'Place' ], |
|
442 | + 'geospatiallyCovers' => [ 'GeospatialGeometry', 'Place' ], |
|
443 | + 'geospatiallyCrosses' => [ 'GeospatialGeometry', 'Place' ], |
|
444 | + 'geospatiallyDisjoint' => [ 'GeospatialGeometry', 'Place' ], |
|
445 | + 'geospatiallyEquals' => [ 'GeospatialGeometry', 'Place' ], |
|
446 | + 'geospatiallyIntersects' => [ 'GeospatialGeometry', 'Place' ], |
|
447 | + 'geospatiallyOverlaps' => [ 'GeospatialGeometry', 'Place' ], |
|
448 | + 'geospatiallyTouches' => [ 'GeospatialGeometry', 'Place' ], |
|
449 | + 'geospatiallyWithin' => [ 'GeospatialGeometry', 'Place' ], |
|
450 | + 'globalLocationNumber' => [ 'Text' ], |
|
451 | + 'hasMap' => [ 'Map', 'URL' ], |
|
452 | + 'isAccessibleForFree' => [ 'Boolean' ], |
|
453 | + 'isicV4' => [ 'Text' ], |
|
454 | + 'logo' => [ 'ImageObject', 'URL' ], |
|
455 | + 'maximumAttendeeCapacity' => [ 'Integer' ], |
|
456 | + 'openingHoursSpecification' => [ 'OpeningHoursSpecification' ], |
|
457 | + 'photo' => [ 'ImageObject', 'Photograph' ], |
|
458 | + 'publicAccess' => [ 'Boolean' ], |
|
459 | + 'review' => [ 'Review' ], |
|
460 | + 'smokingAllowed' => [ 'Boolean' ], |
|
461 | + 'specialOpeningHoursSpecification' => [ 'OpeningHoursSpecification' ], |
|
462 | + 'telephone' => [ 'Text' ] |
|
463 | 463 | ]; |
464 | 464 | |
465 | 465 | /** |
@@ -561,9 +561,9 @@ discard block |
||
561 | 561 | { |
562 | 562 | $rules = parent::rules(); |
563 | 563 | $rules = array_merge($rules, [ |
564 | - [['additionalProperty','address','aggregateRating','amenityFeature','branchCode','containedInPlace','containsPlace','event','faxNumber','geo','geospatiallyContains','geospatiallyCoveredBy','geospatiallyCovers','geospatiallyCrosses','geospatiallyDisjoint','geospatiallyEquals','geospatiallyIntersects','geospatiallyOverlaps','geospatiallyTouches','geospatiallyWithin','globalLocationNumber','hasMap','isAccessibleForFree','isicV4','logo','maximumAttendeeCapacity','openingHoursSpecification','photo','publicAccess','review','smokingAllowed','specialOpeningHoursSpecification','telephone'], 'validateJsonSchema'], |
|
565 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
566 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
564 | + [ [ 'additionalProperty', 'address', 'aggregateRating', 'amenityFeature', 'branchCode', 'containedInPlace', 'containsPlace', 'event', 'faxNumber', 'geo', 'geospatiallyContains', 'geospatiallyCoveredBy', 'geospatiallyCovers', 'geospatiallyCrosses', 'geospatiallyDisjoint', 'geospatiallyEquals', 'geospatiallyIntersects', 'geospatiallyOverlaps', 'geospatiallyTouches', 'geospatiallyWithin', 'globalLocationNumber', 'hasMap', 'isAccessibleForFree', 'isicV4', 'logo', 'maximumAttendeeCapacity', 'openingHoursSpecification', 'photo', 'publicAccess', 'review', 'smokingAllowed', 'specialOpeningHoursSpecification', 'telephone' ], 'validateJsonSchema' ], |
|
565 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
566 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
567 | 567 | ]); |
568 | 568 | |
569 | 569 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -59,35 +59,35 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @var array |
61 | 61 | */ |
62 | - static public $schemaPropertyNames = []; |
|
62 | + static public $schemaPropertyNames = [ ]; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * The Schema.org composed Property Expected Types |
66 | 66 | * |
67 | 67 | * @var array |
68 | 68 | */ |
69 | - static public $schemaPropertyExpectedTypes = []; |
|
69 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * The Schema.org composed Property Descriptions |
73 | 73 | * |
74 | 74 | * @var array |
75 | 75 | */ |
76 | - static public $schemaPropertyDescriptions = []; |
|
76 | + static public $schemaPropertyDescriptions = [ ]; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * The Schema.org composed Google Required Schema for this type |
80 | 80 | * |
81 | 81 | * @var array |
82 | 82 | */ |
83 | - static public $googleRequiredSchema = []; |
|
83 | + static public $googleRequiredSchema = [ ]; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * The Schema.org composed Google Recommended Schema for this type |
87 | 87 | * |
88 | 88 | * @var array |
89 | 89 | */ |
90 | - static public $googleRecommendedSchema = []; |
|
90 | + static public $googleRecommendedSchema = [ ]; |
|
91 | 91 | |
92 | 92 | // Public Properties |
93 | 93 | // ========================================================================= |
@@ -427,39 +427,39 @@ discard block |
||
427 | 427 | * @var array |
428 | 428 | */ |
429 | 429 | static protected $_schemaPropertyExpectedTypes = [ |
430 | - 'additionalProperty' => ['PropertyValue'], |
|
431 | - 'address' => ['PostalAddress','Text'], |
|
432 | - 'aggregateRating' => ['AggregateRating'], |
|
433 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
434 | - 'branchCode' => ['Text'], |
|
435 | - 'containedInPlace' => ['Place'], |
|
436 | - 'containsPlace' => ['Place'], |
|
437 | - 'event' => ['Event'], |
|
438 | - 'faxNumber' => ['Text'], |
|
439 | - 'geo' => ['GeoCoordinates','GeoShape'], |
|
440 | - 'geospatiallyContains' => ['GeospatialGeometry','Place'], |
|
441 | - 'geospatiallyCoveredBy' => ['GeospatialGeometry','Place'], |
|
442 | - 'geospatiallyCovers' => ['GeospatialGeometry','Place'], |
|
443 | - 'geospatiallyCrosses' => ['GeospatialGeometry','Place'], |
|
444 | - 'geospatiallyDisjoint' => ['GeospatialGeometry','Place'], |
|
445 | - 'geospatiallyEquals' => ['GeospatialGeometry','Place'], |
|
446 | - 'geospatiallyIntersects' => ['GeospatialGeometry','Place'], |
|
447 | - 'geospatiallyOverlaps' => ['GeospatialGeometry','Place'], |
|
448 | - 'geospatiallyTouches' => ['GeospatialGeometry','Place'], |
|
449 | - 'geospatiallyWithin' => ['GeospatialGeometry','Place'], |
|
450 | - 'globalLocationNumber' => ['Text'], |
|
451 | - 'hasMap' => ['Map','URL'], |
|
452 | - 'isAccessibleForFree' => ['Boolean'], |
|
453 | - 'isicV4' => ['Text'], |
|
454 | - 'logo' => ['ImageObject','URL'], |
|
455 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
456 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
457 | - 'photo' => ['ImageObject','Photograph'], |
|
458 | - 'publicAccess' => ['Boolean'], |
|
459 | - 'review' => ['Review'], |
|
460 | - 'smokingAllowed' => ['Boolean'], |
|
461 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
462 | - 'telephone' => ['Text'] |
|
430 | + 'additionalProperty' => [ 'PropertyValue' ], |
|
431 | + 'address' => [ 'PostalAddress', 'Text' ], |
|
432 | + 'aggregateRating' => [ 'AggregateRating' ], |
|
433 | + 'amenityFeature' => [ 'LocationFeatureSpecification' ], |
|
434 | + 'branchCode' => [ 'Text' ], |
|
435 | + 'containedInPlace' => [ 'Place' ], |
|
436 | + 'containsPlace' => [ 'Place' ], |
|
437 | + 'event' => [ 'Event' ], |
|
438 | + 'faxNumber' => [ 'Text' ], |
|
439 | + 'geo' => [ 'GeoCoordinates', 'GeoShape' ], |
|
440 | + 'geospatiallyContains' => [ 'GeospatialGeometry', 'Place' ], |
|
441 | + 'geospatiallyCoveredBy' => [ 'GeospatialGeometry', 'Place' ], |
|
442 | + 'geospatiallyCovers' => [ 'GeospatialGeometry', 'Place' ], |
|
443 | + 'geospatiallyCrosses' => [ 'GeospatialGeometry', 'Place' ], |
|
444 | + 'geospatiallyDisjoint' => [ 'GeospatialGeometry', 'Place' ], |
|
445 | + 'geospatiallyEquals' => [ 'GeospatialGeometry', 'Place' ], |
|
446 | + 'geospatiallyIntersects' => [ 'GeospatialGeometry', 'Place' ], |
|
447 | + 'geospatiallyOverlaps' => [ 'GeospatialGeometry', 'Place' ], |
|
448 | + 'geospatiallyTouches' => [ 'GeospatialGeometry', 'Place' ], |
|
449 | + 'geospatiallyWithin' => [ 'GeospatialGeometry', 'Place' ], |
|
450 | + 'globalLocationNumber' => [ 'Text' ], |
|
451 | + 'hasMap' => [ 'Map', 'URL' ], |
|
452 | + 'isAccessibleForFree' => [ 'Boolean' ], |
|
453 | + 'isicV4' => [ 'Text' ], |
|
454 | + 'logo' => [ 'ImageObject', 'URL' ], |
|
455 | + 'maximumAttendeeCapacity' => [ 'Integer' ], |
|
456 | + 'openingHoursSpecification' => [ 'OpeningHoursSpecification' ], |
|
457 | + 'photo' => [ 'ImageObject', 'Photograph' ], |
|
458 | + 'publicAccess' => [ 'Boolean' ], |
|
459 | + 'review' => [ 'Review' ], |
|
460 | + 'smokingAllowed' => [ 'Boolean' ], |
|
461 | + 'specialOpeningHoursSpecification' => [ 'OpeningHoursSpecification' ], |
|
462 | + 'telephone' => [ 'Text' ] |
|
463 | 463 | ]; |
464 | 464 | |
465 | 465 | /** |
@@ -561,9 +561,9 @@ discard block |
||
561 | 561 | { |
562 | 562 | $rules = parent::rules(); |
563 | 563 | $rules = array_merge($rules, [ |
564 | - [['additionalProperty','address','aggregateRating','amenityFeature','branchCode','containedInPlace','containsPlace','event','faxNumber','geo','geospatiallyContains','geospatiallyCoveredBy','geospatiallyCovers','geospatiallyCrosses','geospatiallyDisjoint','geospatiallyEquals','geospatiallyIntersects','geospatiallyOverlaps','geospatiallyTouches','geospatiallyWithin','globalLocationNumber','hasMap','isAccessibleForFree','isicV4','logo','maximumAttendeeCapacity','openingHoursSpecification','photo','publicAccess','review','smokingAllowed','specialOpeningHoursSpecification','telephone'], 'validateJsonSchema'], |
|
565 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
566 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
564 | + [ [ 'additionalProperty', 'address', 'aggregateRating', 'amenityFeature', 'branchCode', 'containedInPlace', 'containsPlace', 'event', 'faxNumber', 'geo', 'geospatiallyContains', 'geospatiallyCoveredBy', 'geospatiallyCovers', 'geospatiallyCrosses', 'geospatiallyDisjoint', 'geospatiallyEquals', 'geospatiallyIntersects', 'geospatiallyOverlaps', 'geospatiallyTouches', 'geospatiallyWithin', 'globalLocationNumber', 'hasMap', 'isAccessibleForFree', 'isicV4', 'logo', 'maximumAttendeeCapacity', 'openingHoursSpecification', 'photo', 'publicAccess', 'review', 'smokingAllowed', 'specialOpeningHoursSpecification', 'telephone' ], 'validateJsonSchema' ], |
|
565 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
566 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
567 | 567 | ]); |
568 | 568 | |
569 | 569 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -59,35 +59,35 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @var array |
61 | 61 | */ |
62 | - static public $schemaPropertyNames = []; |
|
62 | + static public $schemaPropertyNames = [ ]; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * The Schema.org composed Property Expected Types |
66 | 66 | * |
67 | 67 | * @var array |
68 | 68 | */ |
69 | - static public $schemaPropertyExpectedTypes = []; |
|
69 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * The Schema.org composed Property Descriptions |
73 | 73 | * |
74 | 74 | * @var array |
75 | 75 | */ |
76 | - static public $schemaPropertyDescriptions = []; |
|
76 | + static public $schemaPropertyDescriptions = [ ]; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * The Schema.org composed Google Required Schema for this type |
80 | 80 | * |
81 | 81 | * @var array |
82 | 82 | */ |
83 | - static public $googleRequiredSchema = []; |
|
83 | + static public $googleRequiredSchema = [ ]; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * The Schema.org composed Google Recommended Schema for this type |
87 | 87 | * |
88 | 88 | * @var array |
89 | 89 | */ |
90 | - static public $googleRecommendedSchema = []; |
|
90 | + static public $googleRecommendedSchema = [ ]; |
|
91 | 91 | |
92 | 92 | // Public Properties |
93 | 93 | // ========================================================================= |
@@ -427,39 +427,39 @@ discard block |
||
427 | 427 | * @var array |
428 | 428 | */ |
429 | 429 | static protected $_schemaPropertyExpectedTypes = [ |
430 | - 'additionalProperty' => ['PropertyValue'], |
|
431 | - 'address' => ['PostalAddress','Text'], |
|
432 | - 'aggregateRating' => ['AggregateRating'], |
|
433 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
434 | - 'branchCode' => ['Text'], |
|
435 | - 'containedInPlace' => ['Place'], |
|
436 | - 'containsPlace' => ['Place'], |
|
437 | - 'event' => ['Event'], |
|
438 | - 'faxNumber' => ['Text'], |
|
439 | - 'geo' => ['GeoCoordinates','GeoShape'], |
|
440 | - 'geospatiallyContains' => ['GeospatialGeometry','Place'], |
|
441 | - 'geospatiallyCoveredBy' => ['GeospatialGeometry','Place'], |
|
442 | - 'geospatiallyCovers' => ['GeospatialGeometry','Place'], |
|
443 | - 'geospatiallyCrosses' => ['GeospatialGeometry','Place'], |
|
444 | - 'geospatiallyDisjoint' => ['GeospatialGeometry','Place'], |
|
445 | - 'geospatiallyEquals' => ['GeospatialGeometry','Place'], |
|
446 | - 'geospatiallyIntersects' => ['GeospatialGeometry','Place'], |
|
447 | - 'geospatiallyOverlaps' => ['GeospatialGeometry','Place'], |
|
448 | - 'geospatiallyTouches' => ['GeospatialGeometry','Place'], |
|
449 | - 'geospatiallyWithin' => ['GeospatialGeometry','Place'], |
|
450 | - 'globalLocationNumber' => ['Text'], |
|
451 | - 'hasMap' => ['Map','URL'], |
|
452 | - 'isAccessibleForFree' => ['Boolean'], |
|
453 | - 'isicV4' => ['Text'], |
|
454 | - 'logo' => ['ImageObject','URL'], |
|
455 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
456 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
457 | - 'photo' => ['ImageObject','Photograph'], |
|
458 | - 'publicAccess' => ['Boolean'], |
|
459 | - 'review' => ['Review'], |
|
460 | - 'smokingAllowed' => ['Boolean'], |
|
461 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
462 | - 'telephone' => ['Text'] |
|
430 | + 'additionalProperty' => [ 'PropertyValue' ], |
|
431 | + 'address' => [ 'PostalAddress', 'Text' ], |
|
432 | + 'aggregateRating' => [ 'AggregateRating' ], |
|
433 | + 'amenityFeature' => [ 'LocationFeatureSpecification' ], |
|
434 | + 'branchCode' => [ 'Text' ], |
|
435 | + 'containedInPlace' => [ 'Place' ], |
|
436 | + 'containsPlace' => [ 'Place' ], |
|
437 | + 'event' => [ 'Event' ], |
|
438 | + 'faxNumber' => [ 'Text' ], |
|
439 | + 'geo' => [ 'GeoCoordinates', 'GeoShape' ], |
|
440 | + 'geospatiallyContains' => [ 'GeospatialGeometry', 'Place' ], |
|
441 | + 'geospatiallyCoveredBy' => [ 'GeospatialGeometry', 'Place' ], |
|
442 | + 'geospatiallyCovers' => [ 'GeospatialGeometry', 'Place' ], |
|
443 | + 'geospatiallyCrosses' => [ 'GeospatialGeometry', 'Place' ], |
|
444 | + 'geospatiallyDisjoint' => [ 'GeospatialGeometry', 'Place' ], |
|
445 | + 'geospatiallyEquals' => [ 'GeospatialGeometry', 'Place' ], |
|
446 | + 'geospatiallyIntersects' => [ 'GeospatialGeometry', 'Place' ], |
|
447 | + 'geospatiallyOverlaps' => [ 'GeospatialGeometry', 'Place' ], |
|
448 | + 'geospatiallyTouches' => [ 'GeospatialGeometry', 'Place' ], |
|
449 | + 'geospatiallyWithin' => [ 'GeospatialGeometry', 'Place' ], |
|
450 | + 'globalLocationNumber' => [ 'Text' ], |
|
451 | + 'hasMap' => [ 'Map', 'URL' ], |
|
452 | + 'isAccessibleForFree' => [ 'Boolean' ], |
|
453 | + 'isicV4' => [ 'Text' ], |
|
454 | + 'logo' => [ 'ImageObject', 'URL' ], |
|
455 | + 'maximumAttendeeCapacity' => [ 'Integer' ], |
|
456 | + 'openingHoursSpecification' => [ 'OpeningHoursSpecification' ], |
|
457 | + 'photo' => [ 'ImageObject', 'Photograph' ], |
|
458 | + 'publicAccess' => [ 'Boolean' ], |
|
459 | + 'review' => [ 'Review' ], |
|
460 | + 'smokingAllowed' => [ 'Boolean' ], |
|
461 | + 'specialOpeningHoursSpecification' => [ 'OpeningHoursSpecification' ], |
|
462 | + 'telephone' => [ 'Text' ] |
|
463 | 463 | ]; |
464 | 464 | |
465 | 465 | /** |
@@ -561,9 +561,9 @@ discard block |
||
561 | 561 | { |
562 | 562 | $rules = parent::rules(); |
563 | 563 | $rules = array_merge($rules, [ |
564 | - [['additionalProperty','address','aggregateRating','amenityFeature','branchCode','containedInPlace','containsPlace','event','faxNumber','geo','geospatiallyContains','geospatiallyCoveredBy','geospatiallyCovers','geospatiallyCrosses','geospatiallyDisjoint','geospatiallyEquals','geospatiallyIntersects','geospatiallyOverlaps','geospatiallyTouches','geospatiallyWithin','globalLocationNumber','hasMap','isAccessibleForFree','isicV4','logo','maximumAttendeeCapacity','openingHoursSpecification','photo','publicAccess','review','smokingAllowed','specialOpeningHoursSpecification','telephone'], 'validateJsonSchema'], |
|
565 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
566 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
564 | + [ [ 'additionalProperty', 'address', 'aggregateRating', 'amenityFeature', 'branchCode', 'containedInPlace', 'containsPlace', 'event', 'faxNumber', 'geo', 'geospatiallyContains', 'geospatiallyCoveredBy', 'geospatiallyCovers', 'geospatiallyCrosses', 'geospatiallyDisjoint', 'geospatiallyEquals', 'geospatiallyIntersects', 'geospatiallyOverlaps', 'geospatiallyTouches', 'geospatiallyWithin', 'globalLocationNumber', 'hasMap', 'isAccessibleForFree', 'isicV4', 'logo', 'maximumAttendeeCapacity', 'openingHoursSpecification', 'photo', 'publicAccess', 'review', 'smokingAllowed', 'specialOpeningHoursSpecification', 'telephone' ], 'validateJsonSchema' ], |
|
565 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
566 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
567 | 567 | ]); |
568 | 568 | |
569 | 569 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -59,35 +59,35 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @var array |
61 | 61 | */ |
62 | - static public $schemaPropertyNames = []; |
|
62 | + static public $schemaPropertyNames = [ ]; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * The Schema.org composed Property Expected Types |
66 | 66 | * |
67 | 67 | * @var array |
68 | 68 | */ |
69 | - static public $schemaPropertyExpectedTypes = []; |
|
69 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * The Schema.org composed Property Descriptions |
73 | 73 | * |
74 | 74 | * @var array |
75 | 75 | */ |
76 | - static public $schemaPropertyDescriptions = []; |
|
76 | + static public $schemaPropertyDescriptions = [ ]; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * The Schema.org composed Google Required Schema for this type |
80 | 80 | * |
81 | 81 | * @var array |
82 | 82 | */ |
83 | - static public $googleRequiredSchema = []; |
|
83 | + static public $googleRequiredSchema = [ ]; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * The Schema.org composed Google Recommended Schema for this type |
87 | 87 | * |
88 | 88 | * @var array |
89 | 89 | */ |
90 | - static public $googleRecommendedSchema = []; |
|
90 | + static public $googleRecommendedSchema = [ ]; |
|
91 | 91 | |
92 | 92 | // Public Properties |
93 | 93 | // ========================================================================= |
@@ -868,88 +868,88 @@ discard block |
||
868 | 868 | * @var array |
869 | 869 | */ |
870 | 870 | static protected $_schemaPropertyExpectedTypes = [ |
871 | - 'about' => ['Thing'], |
|
872 | - 'accessMode' => ['Text'], |
|
873 | - 'accessModeSufficient' => ['Text'], |
|
874 | - 'accessibilityAPI' => ['Text'], |
|
875 | - 'accessibilityControl' => ['Text'], |
|
876 | - 'accessibilityFeature' => ['Text'], |
|
877 | - 'accessibilityHazard' => ['Text'], |
|
878 | - 'accessibilitySummary' => ['Text'], |
|
879 | - 'accountablePerson' => ['Person'], |
|
880 | - 'aggregateRating' => ['AggregateRating'], |
|
881 | - 'alternativeHeadline' => ['Text'], |
|
882 | - 'associatedMedia' => ['MediaObject'], |
|
883 | - 'audience' => ['Audience'], |
|
884 | - 'audio' => ['AudioObject'], |
|
885 | - 'author' => ['Organization','Person'], |
|
886 | - 'award' => ['Text'], |
|
887 | - 'character' => ['Person'], |
|
888 | - 'citation' => ['CreativeWork','Text'], |
|
889 | - 'comment' => ['Comment'], |
|
890 | - 'commentCount' => ['Integer'], |
|
891 | - 'contentLocation' => ['Place'], |
|
892 | - 'contentRating' => ['Text'], |
|
893 | - 'contentReferenceTime' => ['DateTime'], |
|
894 | - 'contributor' => ['Organization','Person'], |
|
895 | - 'copyrightHolder' => ['Organization','Person'], |
|
896 | - 'copyrightYear' => ['Number'], |
|
897 | - 'creator' => ['Organization','Person'], |
|
898 | - 'dateCreated' => ['Date','DateTime'], |
|
899 | - 'dateModified' => ['Date','DateTime'], |
|
900 | - 'datePublished' => ['Date'], |
|
901 | - 'discussionUrl' => ['URL'], |
|
902 | - 'editor' => ['Person'], |
|
903 | - 'educationalAlignment' => ['AlignmentObject'], |
|
904 | - 'educationalUse' => ['Text'], |
|
905 | - 'encoding' => ['MediaObject'], |
|
906 | - 'exampleOfWork' => ['CreativeWork'], |
|
907 | - 'expires' => ['Date'], |
|
908 | - 'fileFormat' => ['Text','URL'], |
|
909 | - 'funder' => ['Organization','Person'], |
|
910 | - 'genre' => ['Text','URL'], |
|
911 | - 'hasPart' => ['CreativeWork'], |
|
912 | - 'headline' => ['Text'], |
|
913 | - 'inLanguage' => ['Language','Text'], |
|
914 | - 'interactionStatistic' => ['InteractionCounter'], |
|
915 | - 'interactivityType' => ['Text'], |
|
916 | - 'isAccessibleForFree' => ['Boolean'], |
|
917 | - 'isBasedOn' => ['CreativeWork','Product','URL'], |
|
918 | - 'isFamilyFriendly' => ['Boolean'], |
|
919 | - 'isPartOf' => ['CreativeWork'], |
|
920 | - 'keywords' => ['Text'], |
|
921 | - 'learningResourceType' => ['Text'], |
|
922 | - 'license' => ['CreativeWork','URL'], |
|
923 | - 'locationCreated' => ['Place'], |
|
924 | - 'mainEntity' => ['Thing'], |
|
925 | - 'material' => ['Product','Text','URL'], |
|
926 | - 'mentions' => ['Thing'], |
|
927 | - 'offers' => ['Offer'], |
|
928 | - 'position' => ['Integer','Text'], |
|
929 | - 'producer' => ['Organization','Person'], |
|
930 | - 'provider' => ['Organization','Person'], |
|
931 | - 'publication' => ['PublicationEvent'], |
|
932 | - 'publisher' => ['Organization','Person'], |
|
933 | - 'publisherImprint' => ['Organization'], |
|
934 | - 'publishingPrinciples' => ['CreativeWork','URL'], |
|
935 | - 'recordedAt' => ['Event'], |
|
936 | - 'releasedEvent' => ['PublicationEvent'], |
|
937 | - 'review' => ['Review'], |
|
938 | - 'schemaVersion' => ['Text','URL'], |
|
939 | - 'sourceOrganization' => ['Organization'], |
|
940 | - 'spatialCoverage' => ['Place'], |
|
941 | - 'sponsor' => ['Organization','Person'], |
|
942 | - 'temporalCoverage' => ['DateTime','Text','URL'], |
|
943 | - 'text' => ['Text'], |
|
944 | - 'thumbnailUrl' => ['URL'], |
|
945 | - 'timeRequired' => ['Duration'], |
|
946 | - 'translationOfWork' => ['CreativeWork'], |
|
947 | - 'translator' => ['Organization','Person'], |
|
948 | - 'typicalAgeRange' => ['Text'], |
|
949 | - 'version' => ['Number','Text'], |
|
950 | - 'video' => ['VideoObject'], |
|
951 | - 'workExample' => ['CreativeWork'], |
|
952 | - 'workTranslation' => ['CreativeWork'] |
|
871 | + 'about' => [ 'Thing' ], |
|
872 | + 'accessMode' => [ 'Text' ], |
|
873 | + 'accessModeSufficient' => [ 'Text' ], |
|
874 | + 'accessibilityAPI' => [ 'Text' ], |
|
875 | + 'accessibilityControl' => [ 'Text' ], |
|
876 | + 'accessibilityFeature' => [ 'Text' ], |
|
877 | + 'accessibilityHazard' => [ 'Text' ], |
|
878 | + 'accessibilitySummary' => [ 'Text' ], |
|
879 | + 'accountablePerson' => [ 'Person' ], |
|
880 | + 'aggregateRating' => [ 'AggregateRating' ], |
|
881 | + 'alternativeHeadline' => [ 'Text' ], |
|
882 | + 'associatedMedia' => [ 'MediaObject' ], |
|
883 | + 'audience' => [ 'Audience' ], |
|
884 | + 'audio' => [ 'AudioObject' ], |
|
885 | + 'author' => [ 'Organization', 'Person' ], |
|
886 | + 'award' => [ 'Text' ], |
|
887 | + 'character' => [ 'Person' ], |
|
888 | + 'citation' => [ 'CreativeWork', 'Text' ], |
|
889 | + 'comment' => [ 'Comment' ], |
|
890 | + 'commentCount' => [ 'Integer' ], |
|
891 | + 'contentLocation' => [ 'Place' ], |
|
892 | + 'contentRating' => [ 'Text' ], |
|
893 | + 'contentReferenceTime' => [ 'DateTime' ], |
|
894 | + 'contributor' => [ 'Organization', 'Person' ], |
|
895 | + 'copyrightHolder' => [ 'Organization', 'Person' ], |
|
896 | + 'copyrightYear' => [ 'Number' ], |
|
897 | + 'creator' => [ 'Organization', 'Person' ], |
|
898 | + 'dateCreated' => [ 'Date', 'DateTime' ], |
|
899 | + 'dateModified' => [ 'Date', 'DateTime' ], |
|
900 | + 'datePublished' => [ 'Date' ], |
|
901 | + 'discussionUrl' => [ 'URL' ], |
|
902 | + 'editor' => [ 'Person' ], |
|
903 | + 'educationalAlignment' => [ 'AlignmentObject' ], |
|
904 | + 'educationalUse' => [ 'Text' ], |
|
905 | + 'encoding' => [ 'MediaObject' ], |
|
906 | + 'exampleOfWork' => [ 'CreativeWork' ], |
|
907 | + 'expires' => [ 'Date' ], |
|
908 | + 'fileFormat' => [ 'Text', 'URL' ], |
|
909 | + 'funder' => [ 'Organization', 'Person' ], |
|
910 | + 'genre' => [ 'Text', 'URL' ], |
|
911 | + 'hasPart' => [ 'CreativeWork' ], |
|
912 | + 'headline' => [ 'Text' ], |
|
913 | + 'inLanguage' => [ 'Language', 'Text' ], |
|
914 | + 'interactionStatistic' => [ 'InteractionCounter' ], |
|
915 | + 'interactivityType' => [ 'Text' ], |
|
916 | + 'isAccessibleForFree' => [ 'Boolean' ], |
|
917 | + 'isBasedOn' => [ 'CreativeWork', 'Product', 'URL' ], |
|
918 | + 'isFamilyFriendly' => [ 'Boolean' ], |
|
919 | + 'isPartOf' => [ 'CreativeWork' ], |
|
920 | + 'keywords' => [ 'Text' ], |
|
921 | + 'learningResourceType' => [ 'Text' ], |
|
922 | + 'license' => [ 'CreativeWork', 'URL' ], |
|
923 | + 'locationCreated' => [ 'Place' ], |
|
924 | + 'mainEntity' => [ 'Thing' ], |
|
925 | + 'material' => [ 'Product', 'Text', 'URL' ], |
|
926 | + 'mentions' => [ 'Thing' ], |
|
927 | + 'offers' => [ 'Offer' ], |
|
928 | + 'position' => [ 'Integer', 'Text' ], |
|
929 | + 'producer' => [ 'Organization', 'Person' ], |
|
930 | + 'provider' => [ 'Organization', 'Person' ], |
|
931 | + 'publication' => [ 'PublicationEvent' ], |
|
932 | + 'publisher' => [ 'Organization', 'Person' ], |
|
933 | + 'publisherImprint' => [ 'Organization' ], |
|
934 | + 'publishingPrinciples' => [ 'CreativeWork', 'URL' ], |
|
935 | + 'recordedAt' => [ 'Event' ], |
|
936 | + 'releasedEvent' => [ 'PublicationEvent' ], |
|
937 | + 'review' => [ 'Review' ], |
|
938 | + 'schemaVersion' => [ 'Text', 'URL' ], |
|
939 | + 'sourceOrganization' => [ 'Organization' ], |
|
940 | + 'spatialCoverage' => [ 'Place' ], |
|
941 | + 'sponsor' => [ 'Organization', 'Person' ], |
|
942 | + 'temporalCoverage' => [ 'DateTime', 'Text', 'URL' ], |
|
943 | + 'text' => [ 'Text' ], |
|
944 | + 'thumbnailUrl' => [ 'URL' ], |
|
945 | + 'timeRequired' => [ 'Duration' ], |
|
946 | + 'translationOfWork' => [ 'CreativeWork' ], |
|
947 | + 'translator' => [ 'Organization', 'Person' ], |
|
948 | + 'typicalAgeRange' => [ 'Text' ], |
|
949 | + 'version' => [ 'Number', 'Text' ], |
|
950 | + 'video' => [ 'VideoObject' ], |
|
951 | + 'workExample' => [ 'CreativeWork' ], |
|
952 | + 'workTranslation' => [ 'CreativeWork' ] |
|
953 | 953 | ]; |
954 | 954 | |
955 | 955 | /** |
@@ -1100,9 +1100,9 @@ discard block |
||
1100 | 1100 | { |
1101 | 1101 | $rules = parent::rules(); |
1102 | 1102 | $rules = array_merge($rules, [ |
1103 | - [['about','accessMode','accessModeSufficient','accessibilityAPI','accessibilityControl','accessibilityFeature','accessibilityHazard','accessibilitySummary','accountablePerson','aggregateRating','alternativeHeadline','associatedMedia','audience','audio','author','award','character','citation','comment','commentCount','contentLocation','contentRating','contentReferenceTime','contributor','copyrightHolder','copyrightYear','creator','dateCreated','dateModified','datePublished','discussionUrl','editor','educationalAlignment','educationalUse','encoding','exampleOfWork','expires','fileFormat','funder','genre','hasPart','headline','inLanguage','interactionStatistic','interactivityType','isAccessibleForFree','isBasedOn','isFamilyFriendly','isPartOf','keywords','learningResourceType','license','locationCreated','mainEntity','material','mentions','offers','position','producer','provider','publication','publisher','publisherImprint','publishingPrinciples','recordedAt','releasedEvent','review','schemaVersion','sourceOrganization','spatialCoverage','sponsor','temporalCoverage','text','thumbnailUrl','timeRequired','translationOfWork','translator','typicalAgeRange','version','video','workExample','workTranslation'], 'validateJsonSchema'], |
|
1104 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
1105 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
1103 | + [ [ 'about', 'accessMode', 'accessModeSufficient', 'accessibilityAPI', 'accessibilityControl', 'accessibilityFeature', 'accessibilityHazard', 'accessibilitySummary', 'accountablePerson', 'aggregateRating', 'alternativeHeadline', 'associatedMedia', 'audience', 'audio', 'author', 'award', 'character', 'citation', 'comment', 'commentCount', 'contentLocation', 'contentRating', 'contentReferenceTime', 'contributor', 'copyrightHolder', 'copyrightYear', 'creator', 'dateCreated', 'dateModified', 'datePublished', 'discussionUrl', 'editor', 'educationalAlignment', 'educationalUse', 'encoding', 'exampleOfWork', 'expires', 'fileFormat', 'funder', 'genre', 'hasPart', 'headline', 'inLanguage', 'interactionStatistic', 'interactivityType', 'isAccessibleForFree', 'isBasedOn', 'isFamilyFriendly', 'isPartOf', 'keywords', 'learningResourceType', 'license', 'locationCreated', 'mainEntity', 'material', 'mentions', 'offers', 'position', 'producer', 'provider', 'publication', 'publisher', 'publisherImprint', 'publishingPrinciples', 'recordedAt', 'releasedEvent', 'review', 'schemaVersion', 'sourceOrganization', 'spatialCoverage', 'sponsor', 'temporalCoverage', 'text', 'thumbnailUrl', 'timeRequired', 'translationOfWork', 'translator', 'typicalAgeRange', 'version', 'video', 'workExample', 'workTranslation' ], 'validateJsonSchema' ], |
|
1104 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
1105 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
1106 | 1106 | ]); |
1107 | 1107 | |
1108 | 1108 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -59,35 +59,35 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @var array |
61 | 61 | */ |
62 | - static public $schemaPropertyNames = []; |
|
62 | + static public $schemaPropertyNames = [ ]; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * The Schema.org composed Property Expected Types |
66 | 66 | * |
67 | 67 | * @var array |
68 | 68 | */ |
69 | - static public $schemaPropertyExpectedTypes = []; |
|
69 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * The Schema.org composed Property Descriptions |
73 | 73 | * |
74 | 74 | * @var array |
75 | 75 | */ |
76 | - static public $schemaPropertyDescriptions = []; |
|
76 | + static public $schemaPropertyDescriptions = [ ]; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * The Schema.org composed Google Required Schema for this type |
80 | 80 | * |
81 | 81 | * @var array |
82 | 82 | */ |
83 | - static public $googleRequiredSchema = []; |
|
83 | + static public $googleRequiredSchema = [ ]; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * The Schema.org composed Google Recommended Schema for this type |
87 | 87 | * |
88 | 88 | * @var array |
89 | 89 | */ |
90 | - static public $googleRecommendedSchema = []; |
|
90 | + static public $googleRecommendedSchema = [ ]; |
|
91 | 91 | |
92 | 92 | // Public Properties |
93 | 93 | // ========================================================================= |
@@ -398,38 +398,38 @@ discard block |
||
398 | 398 | * @var array |
399 | 399 | */ |
400 | 400 | static protected $_schemaPropertyExpectedTypes = [ |
401 | - 'about' => ['Thing'], |
|
402 | - 'actor' => ['Person'], |
|
403 | - 'aggregateRating' => ['AggregateRating'], |
|
404 | - 'attendee' => ['Organization','Person'], |
|
405 | - 'audience' => ['Audience'], |
|
406 | - 'composer' => ['Organization','Person'], |
|
407 | - 'contributor' => ['Organization','Person'], |
|
408 | - 'director' => ['Person'], |
|
409 | - 'doorTime' => ['DateTime'], |
|
410 | - 'duration' => ['Duration'], |
|
411 | - 'endDate' => ['Date','DateTime'], |
|
412 | - 'eventStatus' => ['EventStatusType'], |
|
413 | - 'funder' => ['Organization','Person'], |
|
414 | - 'inLanguage' => ['Language','Text'], |
|
415 | - 'isAccessibleForFree' => ['Boolean'], |
|
416 | - 'location' => ['Place','PostalAddress','Text'], |
|
417 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
418 | - 'offers' => ['Offer'], |
|
419 | - 'organizer' => ['Organization','Person'], |
|
420 | - 'performer' => ['Organization','Person'], |
|
421 | - 'previousStartDate' => ['Date'], |
|
422 | - 'recordedIn' => ['CreativeWork'], |
|
423 | - 'remainingAttendeeCapacity' => ['Integer'], |
|
424 | - 'review' => ['Review'], |
|
425 | - 'sponsor' => ['Organization','Person'], |
|
426 | - 'startDate' => ['Date','DateTime'], |
|
427 | - 'subEvent' => ['Event'], |
|
428 | - 'superEvent' => ['Event'], |
|
429 | - 'translator' => ['Organization','Person'], |
|
430 | - 'typicalAgeRange' => ['Text'], |
|
431 | - 'workFeatured' => ['CreativeWork'], |
|
432 | - 'workPerformed' => ['CreativeWork'] |
|
401 | + 'about' => [ 'Thing' ], |
|
402 | + 'actor' => [ 'Person' ], |
|
403 | + 'aggregateRating' => [ 'AggregateRating' ], |
|
404 | + 'attendee' => [ 'Organization', 'Person' ], |
|
405 | + 'audience' => [ 'Audience' ], |
|
406 | + 'composer' => [ 'Organization', 'Person' ], |
|
407 | + 'contributor' => [ 'Organization', 'Person' ], |
|
408 | + 'director' => [ 'Person' ], |
|
409 | + 'doorTime' => [ 'DateTime' ], |
|
410 | + 'duration' => [ 'Duration' ], |
|
411 | + 'endDate' => [ 'Date', 'DateTime' ], |
|
412 | + 'eventStatus' => [ 'EventStatusType' ], |
|
413 | + 'funder' => [ 'Organization', 'Person' ], |
|
414 | + 'inLanguage' => [ 'Language', 'Text' ], |
|
415 | + 'isAccessibleForFree' => [ 'Boolean' ], |
|
416 | + 'location' => [ 'Place', 'PostalAddress', 'Text' ], |
|
417 | + 'maximumAttendeeCapacity' => [ 'Integer' ], |
|
418 | + 'offers' => [ 'Offer' ], |
|
419 | + 'organizer' => [ 'Organization', 'Person' ], |
|
420 | + 'performer' => [ 'Organization', 'Person' ], |
|
421 | + 'previousStartDate' => [ 'Date' ], |
|
422 | + 'recordedIn' => [ 'CreativeWork' ], |
|
423 | + 'remainingAttendeeCapacity' => [ 'Integer' ], |
|
424 | + 'review' => [ 'Review' ], |
|
425 | + 'sponsor' => [ 'Organization', 'Person' ], |
|
426 | + 'startDate' => [ 'Date', 'DateTime' ], |
|
427 | + 'subEvent' => [ 'Event' ], |
|
428 | + 'superEvent' => [ 'Event' ], |
|
429 | + 'translator' => [ 'Organization', 'Person' ], |
|
430 | + 'typicalAgeRange' => [ 'Text' ], |
|
431 | + 'workFeatured' => [ 'CreativeWork' ], |
|
432 | + 'workPerformed' => [ 'CreativeWork' ] |
|
433 | 433 | ]; |
434 | 434 | |
435 | 435 | /** |
@@ -530,9 +530,9 @@ discard block |
||
530 | 530 | { |
531 | 531 | $rules = parent::rules(); |
532 | 532 | $rules = array_merge($rules, [ |
533 | - [['about','actor','aggregateRating','attendee','audience','composer','contributor','director','doorTime','duration','endDate','eventStatus','funder','inLanguage','isAccessibleForFree','location','maximumAttendeeCapacity','offers','organizer','performer','previousStartDate','recordedIn','remainingAttendeeCapacity','review','sponsor','startDate','subEvent','superEvent','translator','typicalAgeRange','workFeatured','workPerformed'], 'validateJsonSchema'], |
|
534 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
535 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
533 | + [ [ 'about', 'actor', 'aggregateRating', 'attendee', 'audience', 'composer', 'contributor', 'director', 'doorTime', 'duration', 'endDate', 'eventStatus', 'funder', 'inLanguage', 'isAccessibleForFree', 'location', 'maximumAttendeeCapacity', 'offers', 'organizer', 'performer', 'previousStartDate', 'recordedIn', 'remainingAttendeeCapacity', 'review', 'sponsor', 'startDate', 'subEvent', 'superEvent', 'translator', 'typicalAgeRange', 'workFeatured', 'workPerformed' ], 'validateJsonSchema' ], |
|
534 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
535 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
536 | 536 | ]); |
537 | 537 | |
538 | 538 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -59,35 +59,35 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @var array |
61 | 61 | */ |
62 | - static public $schemaPropertyNames = []; |
|
62 | + static public $schemaPropertyNames = [ ]; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * The Schema.org composed Property Expected Types |
66 | 66 | * |
67 | 67 | * @var array |
68 | 68 | */ |
69 | - static public $schemaPropertyExpectedTypes = []; |
|
69 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * The Schema.org composed Property Descriptions |
73 | 73 | * |
74 | 74 | * @var array |
75 | 75 | */ |
76 | - static public $schemaPropertyDescriptions = []; |
|
76 | + static public $schemaPropertyDescriptions = [ ]; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * The Schema.org composed Google Required Schema for this type |
80 | 80 | * |
81 | 81 | * @var array |
82 | 82 | */ |
83 | - static public $googleRequiredSchema = []; |
|
83 | + static public $googleRequiredSchema = [ ]; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * The Schema.org composed Google Recommended Schema for this type |
87 | 87 | * |
88 | 88 | * @var array |
89 | 89 | */ |
90 | - static public $googleRecommendedSchema = []; |
|
90 | + static public $googleRecommendedSchema = [ ]; |
|
91 | 91 | |
92 | 92 | // Public Properties |
93 | 93 | // ========================================================================= |
@@ -142,10 +142,10 @@ discard block |
||
142 | 142 | * @var array |
143 | 143 | */ |
144 | 144 | static protected $_schemaPropertyExpectedTypes = [ |
145 | - 'item' => ['Thing'], |
|
146 | - 'nextItem' => ['ListItem'], |
|
147 | - 'position' => ['Integer','Text'], |
|
148 | - 'previousItem' => ['ListItem'] |
|
145 | + 'item' => [ 'Thing' ], |
|
146 | + 'nextItem' => [ 'ListItem' ], |
|
147 | + 'position' => [ 'Integer', 'Text' ], |
|
148 | + 'previousItem' => [ 'ListItem' ] |
|
149 | 149 | ]; |
150 | 150 | |
151 | 151 | /** |
@@ -218,9 +218,9 @@ discard block |
||
218 | 218 | { |
219 | 219 | $rules = parent::rules(); |
220 | 220 | $rules = array_merge($rules, [ |
221 | - [['item','nextItem','position','previousItem'], 'validateJsonSchema'], |
|
222 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
223 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
221 | + [ [ 'item', 'nextItem', 'position', 'previousItem' ], 'validateJsonSchema' ], |
|
222 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
223 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
224 | 224 | ]); |
225 | 225 | |
226 | 226 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -59,35 +59,35 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @var array |
61 | 61 | */ |
62 | - static public $schemaPropertyNames = []; |
|
62 | + static public $schemaPropertyNames = [ ]; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * The Schema.org composed Property Expected Types |
66 | 66 | * |
67 | 67 | * @var array |
68 | 68 | */ |
69 | - static public $schemaPropertyExpectedTypes = []; |
|
69 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * The Schema.org composed Property Descriptions |
73 | 73 | * |
74 | 74 | * @var array |
75 | 75 | */ |
76 | - static public $schemaPropertyDescriptions = []; |
|
76 | + static public $schemaPropertyDescriptions = [ ]; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * The Schema.org composed Google Required Schema for this type |
80 | 80 | * |
81 | 81 | * @var array |
82 | 82 | */ |
83 | - static public $googleRequiredSchema = []; |
|
83 | + static public $googleRequiredSchema = [ ]; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * The Schema.org composed Google Recommended Schema for this type |
87 | 87 | * |
88 | 88 | * @var array |
89 | 89 | */ |
90 | - static public $googleRecommendedSchema = []; |
|
90 | + static public $googleRecommendedSchema = [ ]; |
|
91 | 91 | |
92 | 92 | // Public Properties |
93 | 93 | // ========================================================================= |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * @var array |
127 | 127 | */ |
128 | 128 | static protected $_schemaPropertyExpectedTypes = [ |
129 | - 'openingHours' => ['Text'] |
|
129 | + 'openingHours' => [ 'Text' ] |
|
130 | 130 | ]; |
131 | 131 | |
132 | 132 | /** |
@@ -196,9 +196,9 @@ discard block |
||
196 | 196 | { |
197 | 197 | $rules = parent::rules(); |
198 | 198 | $rules = array_merge($rules, [ |
199 | - [['openingHours'], 'validateJsonSchema'], |
|
200 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
201 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
199 | + [ [ 'openingHours' ], 'validateJsonSchema' ], |
|
200 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
201 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
202 | 202 | ]); |
203 | 203 | |
204 | 204 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -59,35 +59,35 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @var array |
61 | 61 | */ |
62 | - static public $schemaPropertyNames = []; |
|
62 | + static public $schemaPropertyNames = [ ]; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * The Schema.org composed Property Expected Types |
66 | 66 | * |
67 | 67 | * @var array |
68 | 68 | */ |
69 | - static public $schemaPropertyExpectedTypes = []; |
|
69 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * The Schema.org composed Property Descriptions |
73 | 73 | * |
74 | 74 | * @var array |
75 | 75 | */ |
76 | - static public $schemaPropertyDescriptions = []; |
|
76 | + static public $schemaPropertyDescriptions = [ ]; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * The Schema.org composed Google Required Schema for this type |
80 | 80 | * |
81 | 81 | * @var array |
82 | 82 | */ |
83 | - static public $googleRequiredSchema = []; |
|
83 | + static public $googleRequiredSchema = [ ]; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * The Schema.org composed Google Recommended Schema for this type |
87 | 87 | * |
88 | 88 | * @var array |
89 | 89 | */ |
90 | - static public $googleRecommendedSchema = []; |
|
90 | + static public $googleRecommendedSchema = [ ]; |
|
91 | 91 | |
92 | 92 | // Public Properties |
93 | 93 | // ========================================================================= |
@@ -427,39 +427,39 @@ discard block |
||
427 | 427 | * @var array |
428 | 428 | */ |
429 | 429 | static protected $_schemaPropertyExpectedTypes = [ |
430 | - 'additionalProperty' => ['PropertyValue'], |
|
431 | - 'address' => ['PostalAddress','Text'], |
|
432 | - 'aggregateRating' => ['AggregateRating'], |
|
433 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
434 | - 'branchCode' => ['Text'], |
|
435 | - 'containedInPlace' => ['Place'], |
|
436 | - 'containsPlace' => ['Place'], |
|
437 | - 'event' => ['Event'], |
|
438 | - 'faxNumber' => ['Text'], |
|
439 | - 'geo' => ['GeoCoordinates','GeoShape'], |
|
440 | - 'geospatiallyContains' => ['GeospatialGeometry','Place'], |
|
441 | - 'geospatiallyCoveredBy' => ['GeospatialGeometry','Place'], |
|
442 | - 'geospatiallyCovers' => ['GeospatialGeometry','Place'], |
|
443 | - 'geospatiallyCrosses' => ['GeospatialGeometry','Place'], |
|
444 | - 'geospatiallyDisjoint' => ['GeospatialGeometry','Place'], |
|
445 | - 'geospatiallyEquals' => ['GeospatialGeometry','Place'], |
|
446 | - 'geospatiallyIntersects' => ['GeospatialGeometry','Place'], |
|
447 | - 'geospatiallyOverlaps' => ['GeospatialGeometry','Place'], |
|
448 | - 'geospatiallyTouches' => ['GeospatialGeometry','Place'], |
|
449 | - 'geospatiallyWithin' => ['GeospatialGeometry','Place'], |
|
450 | - 'globalLocationNumber' => ['Text'], |
|
451 | - 'hasMap' => ['Map','URL'], |
|
452 | - 'isAccessibleForFree' => ['Boolean'], |
|
453 | - 'isicV4' => ['Text'], |
|
454 | - 'logo' => ['ImageObject','URL'], |
|
455 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
456 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
457 | - 'photo' => ['ImageObject','Photograph'], |
|
458 | - 'publicAccess' => ['Boolean'], |
|
459 | - 'review' => ['Review'], |
|
460 | - 'smokingAllowed' => ['Boolean'], |
|
461 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
462 | - 'telephone' => ['Text'] |
|
430 | + 'additionalProperty' => [ 'PropertyValue' ], |
|
431 | + 'address' => [ 'PostalAddress', 'Text' ], |
|
432 | + 'aggregateRating' => [ 'AggregateRating' ], |
|
433 | + 'amenityFeature' => [ 'LocationFeatureSpecification' ], |
|
434 | + 'branchCode' => [ 'Text' ], |
|
435 | + 'containedInPlace' => [ 'Place' ], |
|
436 | + 'containsPlace' => [ 'Place' ], |
|
437 | + 'event' => [ 'Event' ], |
|
438 | + 'faxNumber' => [ 'Text' ], |
|
439 | + 'geo' => [ 'GeoCoordinates', 'GeoShape' ], |
|
440 | + 'geospatiallyContains' => [ 'GeospatialGeometry', 'Place' ], |
|
441 | + 'geospatiallyCoveredBy' => [ 'GeospatialGeometry', 'Place' ], |
|
442 | + 'geospatiallyCovers' => [ 'GeospatialGeometry', 'Place' ], |
|
443 | + 'geospatiallyCrosses' => [ 'GeospatialGeometry', 'Place' ], |
|
444 | + 'geospatiallyDisjoint' => [ 'GeospatialGeometry', 'Place' ], |
|
445 | + 'geospatiallyEquals' => [ 'GeospatialGeometry', 'Place' ], |
|
446 | + 'geospatiallyIntersects' => [ 'GeospatialGeometry', 'Place' ], |
|
447 | + 'geospatiallyOverlaps' => [ 'GeospatialGeometry', 'Place' ], |
|
448 | + 'geospatiallyTouches' => [ 'GeospatialGeometry', 'Place' ], |
|
449 | + 'geospatiallyWithin' => [ 'GeospatialGeometry', 'Place' ], |
|
450 | + 'globalLocationNumber' => [ 'Text' ], |
|
451 | + 'hasMap' => [ 'Map', 'URL' ], |
|
452 | + 'isAccessibleForFree' => [ 'Boolean' ], |
|
453 | + 'isicV4' => [ 'Text' ], |
|
454 | + 'logo' => [ 'ImageObject', 'URL' ], |
|
455 | + 'maximumAttendeeCapacity' => [ 'Integer' ], |
|
456 | + 'openingHoursSpecification' => [ 'OpeningHoursSpecification' ], |
|
457 | + 'photo' => [ 'ImageObject', 'Photograph' ], |
|
458 | + 'publicAccess' => [ 'Boolean' ], |
|
459 | + 'review' => [ 'Review' ], |
|
460 | + 'smokingAllowed' => [ 'Boolean' ], |
|
461 | + 'specialOpeningHoursSpecification' => [ 'OpeningHoursSpecification' ], |
|
462 | + 'telephone' => [ 'Text' ] |
|
463 | 463 | ]; |
464 | 464 | |
465 | 465 | /** |
@@ -561,9 +561,9 @@ discard block |
||
561 | 561 | { |
562 | 562 | $rules = parent::rules(); |
563 | 563 | $rules = array_merge($rules, [ |
564 | - [['additionalProperty','address','aggregateRating','amenityFeature','branchCode','containedInPlace','containsPlace','event','faxNumber','geo','geospatiallyContains','geospatiallyCoveredBy','geospatiallyCovers','geospatiallyCrosses','geospatiallyDisjoint','geospatiallyEquals','geospatiallyIntersects','geospatiallyOverlaps','geospatiallyTouches','geospatiallyWithin','globalLocationNumber','hasMap','isAccessibleForFree','isicV4','logo','maximumAttendeeCapacity','openingHoursSpecification','photo','publicAccess','review','smokingAllowed','specialOpeningHoursSpecification','telephone'], 'validateJsonSchema'], |
|
565 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
566 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
564 | + [ [ 'additionalProperty', 'address', 'aggregateRating', 'amenityFeature', 'branchCode', 'containedInPlace', 'containsPlace', 'event', 'faxNumber', 'geo', 'geospatiallyContains', 'geospatiallyCoveredBy', 'geospatiallyCovers', 'geospatiallyCrosses', 'geospatiallyDisjoint', 'geospatiallyEquals', 'geospatiallyIntersects', 'geospatiallyOverlaps', 'geospatiallyTouches', 'geospatiallyWithin', 'globalLocationNumber', 'hasMap', 'isAccessibleForFree', 'isicV4', 'logo', 'maximumAttendeeCapacity', 'openingHoursSpecification', 'photo', 'publicAccess', 'review', 'smokingAllowed', 'specialOpeningHoursSpecification', 'telephone' ], 'validateJsonSchema' ], |
|
565 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
566 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
567 | 567 | ]); |
568 | 568 | |
569 | 569 | return $rules; |