@@ -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 | // ========================================================================= |
@@ -527,52 +527,52 @@ discard block |
||
527 | 527 | * @var array |
528 | 528 | */ |
529 | 529 | static protected $_schemaPropertyExpectedTypes = [ |
530 | - 'actionableFeedbackPolicy' => ['CreativeWork','URL'], |
|
531 | - 'address' => ['PostalAddress','Text'], |
|
532 | - 'aggregateRating' => ['AggregateRating'], |
|
533 | - 'alumni' => ['Person'], |
|
534 | - 'areaServed' => ['AdministrativeArea','GeoShape','Place','Text'], |
|
535 | - 'award' => ['Text'], |
|
536 | - 'brand' => ['Brand','Organization'], |
|
537 | - 'contactPoint' => ['ContactPoint'], |
|
538 | - 'correctionsPolicy' => ['CreativeWork','URL'], |
|
539 | - 'department' => ['Organization'], |
|
540 | - 'dissolutionDate' => ['Date'], |
|
541 | - 'diversityPolicy' => ['CreativeWork','URL'], |
|
542 | - 'duns' => ['Text'], |
|
543 | - 'email' => ['Text'], |
|
544 | - 'employee' => ['Person'], |
|
545 | - 'ethicsPolicy' => ['CreativeWork','URL'], |
|
546 | - 'event' => ['Event'], |
|
547 | - 'faxNumber' => ['Text'], |
|
548 | - 'founder' => ['Person'], |
|
549 | - 'foundingDate' => ['Date'], |
|
550 | - 'foundingLocation' => ['Place'], |
|
551 | - 'funder' => ['Organization','Person'], |
|
552 | - 'globalLocationNumber' => ['Text'], |
|
553 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
554 | - 'hasPOS' => ['Place'], |
|
555 | - 'isicV4' => ['Text'], |
|
556 | - 'legalName' => ['Text'], |
|
557 | - 'leiCode' => ['Text'], |
|
558 | - 'location' => ['Place','PostalAddress','Text'], |
|
559 | - 'logo' => ['ImageObject','URL'], |
|
560 | - 'makesOffer' => ['Offer'], |
|
561 | - 'member' => ['Organization','Person'], |
|
562 | - 'memberOf' => ['Organization','ProgramMembership'], |
|
563 | - 'naics' => ['Text'], |
|
564 | - 'numberOfEmployees' => ['QuantitativeValue'], |
|
565 | - 'owns' => ['OwnershipInfo','Product'], |
|
566 | - 'parentOrganization' => ['Organization'], |
|
567 | - 'publishingPrinciples' => ['CreativeWork','URL'], |
|
568 | - 'review' => ['Review'], |
|
569 | - 'seeks' => ['Demand'], |
|
570 | - 'sponsor' => ['Organization','Person'], |
|
571 | - 'subOrganization' => ['Organization'], |
|
572 | - 'taxID' => ['Text'], |
|
573 | - 'telephone' => ['Text'], |
|
574 | - 'unnamedSourcesPolicy' => ['CreativeWork','URL'], |
|
575 | - 'vatID' => ['Text'] |
|
530 | + 'actionableFeedbackPolicy' => [ 'CreativeWork', 'URL' ], |
|
531 | + 'address' => [ 'PostalAddress', 'Text' ], |
|
532 | + 'aggregateRating' => [ 'AggregateRating' ], |
|
533 | + 'alumni' => [ 'Person' ], |
|
534 | + 'areaServed' => [ 'AdministrativeArea', 'GeoShape', 'Place', 'Text' ], |
|
535 | + 'award' => [ 'Text' ], |
|
536 | + 'brand' => [ 'Brand', 'Organization' ], |
|
537 | + 'contactPoint' => [ 'ContactPoint' ], |
|
538 | + 'correctionsPolicy' => [ 'CreativeWork', 'URL' ], |
|
539 | + 'department' => [ 'Organization' ], |
|
540 | + 'dissolutionDate' => [ 'Date' ], |
|
541 | + 'diversityPolicy' => [ 'CreativeWork', 'URL' ], |
|
542 | + 'duns' => [ 'Text' ], |
|
543 | + 'email' => [ 'Text' ], |
|
544 | + 'employee' => [ 'Person' ], |
|
545 | + 'ethicsPolicy' => [ 'CreativeWork', 'URL' ], |
|
546 | + 'event' => [ 'Event' ], |
|
547 | + 'faxNumber' => [ 'Text' ], |
|
548 | + 'founder' => [ 'Person' ], |
|
549 | + 'foundingDate' => [ 'Date' ], |
|
550 | + 'foundingLocation' => [ 'Place' ], |
|
551 | + 'funder' => [ 'Organization', 'Person' ], |
|
552 | + 'globalLocationNumber' => [ 'Text' ], |
|
553 | + 'hasOfferCatalog' => [ 'OfferCatalog' ], |
|
554 | + 'hasPOS' => [ 'Place' ], |
|
555 | + 'isicV4' => [ 'Text' ], |
|
556 | + 'legalName' => [ 'Text' ], |
|
557 | + 'leiCode' => [ 'Text' ], |
|
558 | + 'location' => [ 'Place', 'PostalAddress', 'Text' ], |
|
559 | + 'logo' => [ 'ImageObject', 'URL' ], |
|
560 | + 'makesOffer' => [ 'Offer' ], |
|
561 | + 'member' => [ 'Organization', 'Person' ], |
|
562 | + 'memberOf' => [ 'Organization', 'ProgramMembership' ], |
|
563 | + 'naics' => [ 'Text' ], |
|
564 | + 'numberOfEmployees' => [ 'QuantitativeValue' ], |
|
565 | + 'owns' => [ 'OwnershipInfo', 'Product' ], |
|
566 | + 'parentOrganization' => [ 'Organization' ], |
|
567 | + 'publishingPrinciples' => [ 'CreativeWork', 'URL' ], |
|
568 | + 'review' => [ 'Review' ], |
|
569 | + 'seeks' => [ 'Demand' ], |
|
570 | + 'sponsor' => [ 'Organization', 'Person' ], |
|
571 | + 'subOrganization' => [ 'Organization' ], |
|
572 | + 'taxID' => [ 'Text' ], |
|
573 | + 'telephone' => [ 'Text' ], |
|
574 | + 'unnamedSourcesPolicy' => [ 'CreativeWork', 'URL' ], |
|
575 | + 'vatID' => [ 'Text' ] |
|
576 | 576 | ]; |
577 | 577 | |
578 | 578 | /** |
@@ -687,9 +687,9 @@ discard block |
||
687 | 687 | { |
688 | 688 | $rules = parent::rules(); |
689 | 689 | $rules = array_merge($rules, [ |
690 | - [['actionableFeedbackPolicy','address','aggregateRating','alumni','areaServed','award','brand','contactPoint','correctionsPolicy','department','dissolutionDate','diversityPolicy','duns','email','employee','ethicsPolicy','event','faxNumber','founder','foundingDate','foundingLocation','funder','globalLocationNumber','hasOfferCatalog','hasPOS','isicV4','legalName','leiCode','location','logo','makesOffer','member','memberOf','naics','numberOfEmployees','owns','parentOrganization','publishingPrinciples','review','seeks','sponsor','subOrganization','taxID','telephone','unnamedSourcesPolicy','vatID'], 'validateJsonSchema'], |
|
691 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
692 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
690 | + [ [ 'actionableFeedbackPolicy', 'address', 'aggregateRating', 'alumni', 'areaServed', 'award', 'brand', 'contactPoint', 'correctionsPolicy', 'department', 'dissolutionDate', 'diversityPolicy', 'duns', 'email', 'employee', 'ethicsPolicy', 'event', 'faxNumber', 'founder', 'foundingDate', 'foundingLocation', 'funder', 'globalLocationNumber', 'hasOfferCatalog', 'hasPOS', 'isicV4', 'legalName', 'leiCode', 'location', 'logo', 'makesOffer', 'member', 'memberOf', 'naics', 'numberOfEmployees', 'owns', 'parentOrganization', 'publishingPrinciples', 'review', 'seeks', 'sponsor', 'subOrganization', 'taxID', 'telephone', 'unnamedSourcesPolicy', 'vatID' ], 'validateJsonSchema' ], |
|
691 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
692 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
693 | 693 | ]); |
694 | 694 | |
695 | 695 | 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 | // ========================================================================= |
@@ -176,14 +176,14 @@ discard block |
||
176 | 176 | * @var array |
177 | 177 | */ |
178 | 178 | static protected $_schemaPropertyExpectedTypes = [ |
179 | - 'dateIssued' => ['DateTime'], |
|
180 | - 'issuedBy' => ['Organization'], |
|
181 | - 'priceCurrency' => ['Text'], |
|
182 | - 'ticketNumber' => ['Text'], |
|
183 | - 'ticketToken' => ['Text','URL'], |
|
184 | - 'ticketedSeat' => ['Seat'], |
|
185 | - 'totalPrice' => ['Number','PriceSpecification','Text'], |
|
186 | - 'underName' => ['Organization','Person'] |
|
179 | + 'dateIssued' => [ 'DateTime' ], |
|
180 | + 'issuedBy' => [ 'Organization' ], |
|
181 | + 'priceCurrency' => [ 'Text' ], |
|
182 | + 'ticketNumber' => [ 'Text' ], |
|
183 | + 'ticketToken' => [ 'Text', 'URL' ], |
|
184 | + 'ticketedSeat' => [ 'Seat' ], |
|
185 | + 'totalPrice' => [ 'Number', 'PriceSpecification', 'Text' ], |
|
186 | + 'underName' => [ 'Organization', 'Person' ] |
|
187 | 187 | ]; |
188 | 188 | |
189 | 189 | /** |
@@ -260,9 +260,9 @@ discard block |
||
260 | 260 | { |
261 | 261 | $rules = parent::rules(); |
262 | 262 | $rules = array_merge($rules, [ |
263 | - [['dateIssued','issuedBy','priceCurrency','ticketNumber','ticketToken','ticketedSeat','totalPrice','underName'], 'validateJsonSchema'], |
|
264 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
265 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
263 | + [ [ 'dateIssued', 'issuedBy', 'priceCurrency', 'ticketNumber', 'ticketToken', 'ticketedSeat', 'totalPrice', 'underName' ], 'validateJsonSchema' ], |
|
264 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
265 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
266 | 266 | ]); |
267 | 267 | |
268 | 268 | 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(); |
@@ -60,35 +60,35 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @var array |
62 | 62 | */ |
63 | - static public $schemaPropertyNames = []; |
|
63 | + static public $schemaPropertyNames = [ ]; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * The Schema.org composed Property Expected Types |
67 | 67 | * |
68 | 68 | * @var array |
69 | 69 | */ |
70 | - static public $schemaPropertyExpectedTypes = []; |
|
70 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * The Schema.org composed Property Descriptions |
74 | 74 | * |
75 | 75 | * @var array |
76 | 76 | */ |
77 | - static public $schemaPropertyDescriptions = []; |
|
77 | + static public $schemaPropertyDescriptions = [ ]; |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * The Schema.org composed Google Required Schema for this type |
81 | 81 | * |
82 | 82 | * @var array |
83 | 83 | */ |
84 | - static public $googleRequiredSchema = []; |
|
84 | + static public $googleRequiredSchema = [ ]; |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | * The Schema.org composed Google Recommended Schema for this type |
88 | 88 | * |
89 | 89 | * @var array |
90 | 90 | */ |
91 | - static public $googleRecommendedSchema = []; |
|
91 | + static public $googleRecommendedSchema = [ ]; |
|
92 | 92 | |
93 | 93 | // Public Properties |
94 | 94 | // ========================================================================= |
@@ -214,17 +214,17 @@ discard block |
||
214 | 214 | * @var array |
215 | 215 | */ |
216 | 216 | static protected $_schemaPropertyExpectedTypes = [ |
217 | - 'actionStatus' => ['ActionStatusType'], |
|
218 | - 'agent' => ['Organization','Person'], |
|
219 | - 'endTime' => ['DateTime'], |
|
220 | - 'error' => ['Thing'], |
|
221 | - 'instrument' => ['Thing'], |
|
222 | - 'location' => ['Place','PostalAddress','Text'], |
|
223 | - 'object' => ['Thing'], |
|
224 | - 'participant' => ['Organization','Person'], |
|
225 | - 'result' => ['Thing'], |
|
226 | - 'startTime' => ['DateTime'], |
|
227 | - 'target' => ['EntryPoint'] |
|
217 | + 'actionStatus' => [ 'ActionStatusType' ], |
|
218 | + 'agent' => [ 'Organization', 'Person' ], |
|
219 | + 'endTime' => [ 'DateTime' ], |
|
220 | + 'error' => [ 'Thing' ], |
|
221 | + 'instrument' => [ 'Thing' ], |
|
222 | + 'location' => [ 'Place', 'PostalAddress', 'Text' ], |
|
223 | + 'object' => [ 'Thing' ], |
|
224 | + 'participant' => [ 'Organization', 'Person' ], |
|
225 | + 'result' => [ 'Thing' ], |
|
226 | + 'startTime' => [ 'DateTime' ], |
|
227 | + 'target' => [ 'EntryPoint' ] |
|
228 | 228 | ]; |
229 | 229 | |
230 | 230 | /** |
@@ -304,9 +304,9 @@ discard block |
||
304 | 304 | { |
305 | 305 | $rules = parent::rules(); |
306 | 306 | $rules = array_merge($rules, [ |
307 | - [['actionStatus','agent','endTime','error','instrument','location','object','participant','result','startTime','target'], 'validateJsonSchema'], |
|
308 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
309 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
307 | + [ [ 'actionStatus', 'agent', 'endTime', 'error', 'instrument', 'location', 'object', 'participant', 'result', 'startTime', 'target' ], 'validateJsonSchema' ], |
|
308 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
309 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
310 | 310 | ]); |
311 | 311 | |
312 | 312 | 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(); |
@@ -62,35 +62,35 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @var array |
64 | 64 | */ |
65 | - static public $schemaPropertyNames = []; |
|
65 | + static public $schemaPropertyNames = [ ]; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * The Schema.org composed Property Expected Types |
69 | 69 | * |
70 | 70 | * @var array |
71 | 71 | */ |
72 | - static public $schemaPropertyExpectedTypes = []; |
|
72 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
73 | 73 | |
74 | 74 | /** |
75 | 75 | * The Schema.org composed Property Descriptions |
76 | 76 | * |
77 | 77 | * @var array |
78 | 78 | */ |
79 | - static public $schemaPropertyDescriptions = []; |
|
79 | + static public $schemaPropertyDescriptions = [ ]; |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * The Schema.org composed Google Required Schema for this type |
83 | 83 | * |
84 | 84 | * @var array |
85 | 85 | */ |
86 | - static public $googleRequiredSchema = []; |
|
86 | + static public $googleRequiredSchema = [ ]; |
|
87 | 87 | |
88 | 88 | /** |
89 | 89 | * The Schema.org composed Google Recommended Schema for this type |
90 | 90 | * |
91 | 91 | * @var array |
92 | 92 | */ |
93 | - static public $googleRecommendedSchema = []; |
|
93 | + static public $googleRecommendedSchema = [ ]; |
|
94 | 94 | |
95 | 95 | // Public Properties |
96 | 96 | // ========================================================================= |
@@ -138,9 +138,9 @@ discard block |
||
138 | 138 | * @var array |
139 | 139 | */ |
140 | 140 | static protected $_schemaPropertyExpectedTypes = [ |
141 | - 'endDate' => ['Date','DateTime'], |
|
142 | - 'issn' => ['Text'], |
|
143 | - 'startDate' => ['Date','DateTime'] |
|
141 | + 'endDate' => [ 'Date', 'DateTime' ], |
|
142 | + 'issn' => [ 'Text' ], |
|
143 | + 'startDate' => [ 'Date', 'DateTime' ] |
|
144 | 144 | ]; |
145 | 145 | |
146 | 146 | /** |
@@ -212,9 +212,9 @@ discard block |
||
212 | 212 | { |
213 | 213 | $rules = parent::rules(); |
214 | 214 | $rules = array_merge($rules, [ |
215 | - [['endDate','issn','startDate'], 'validateJsonSchema'], |
|
216 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
217 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
215 | + [ [ 'endDate', 'issn', 'startDate' ], 'validateJsonSchema' ], |
|
216 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
217 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
218 | 218 | ]); |
219 | 219 | |
220 | 220 | 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,8 +126,8 @@ discard block |
||
126 | 126 | * @var array |
127 | 127 | */ |
128 | 128 | static protected $_schemaPropertyExpectedTypes = [ |
129 | - 'athlete' => ['Person'], |
|
130 | - 'coach' => ['Person'] |
|
129 | + 'athlete' => [ 'Person' ], |
|
130 | + 'coach' => [ 'Person' ] |
|
131 | 131 | ]; |
132 | 132 | |
133 | 133 | /** |
@@ -198,9 +198,9 @@ discard block |
||
198 | 198 | { |
199 | 199 | $rules = parent::rules(); |
200 | 200 | $rules = array_merge($rules, [ |
201 | - [['athlete','coach'], 'validateJsonSchema'], |
|
202 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
203 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
201 | + [ [ 'athlete', 'coach' ], 'validateJsonSchema' ], |
|
202 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
203 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
204 | 204 | ]); |
205 | 205 | |
206 | 206 | 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 | // ========================================================================= |
@@ -147,10 +147,10 @@ discard block |
||
147 | 147 | * @var array |
148 | 148 | */ |
149 | 149 | static protected $_schemaPropertyExpectedTypes = [ |
150 | - 'acceptsReservations' => ['Boolean','Text','URL'], |
|
151 | - 'hasMenu' => ['Menu','Text','URL'], |
|
152 | - 'servesCuisine' => ['Text'], |
|
153 | - 'starRating' => ['Rating'] |
|
150 | + 'acceptsReservations' => [ 'Boolean', 'Text', 'URL' ], |
|
151 | + 'hasMenu' => [ 'Menu', 'Text', 'URL' ], |
|
152 | + 'servesCuisine' => [ 'Text' ], |
|
153 | + 'starRating' => [ 'Rating' ] |
|
154 | 154 | ]; |
155 | 155 | |
156 | 156 | /** |
@@ -223,9 +223,9 @@ discard block |
||
223 | 223 | { |
224 | 224 | $rules = parent::rules(); |
225 | 225 | $rules = array_merge($rules, [ |
226 | - [['acceptsReservations','hasMenu','servesCuisine','starRating'], 'validateJsonSchema'], |
|
227 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
228 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
226 | + [ [ 'acceptsReservations', 'hasMenu', 'servesCuisine', 'starRating' ], 'validateJsonSchema' ], |
|
227 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
228 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
229 | 229 | ]); |
230 | 230 | |
231 | 231 | 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,8 +126,8 @@ discard block |
||
126 | 126 | * @var array |
127 | 127 | */ |
128 | 128 | static protected $_schemaPropertyExpectedTypes = [ |
129 | - 'grantee' => ['Audience','ContactPoint','Organization','Person'], |
|
130 | - 'permissionType' => ['DigitalDocumentPermissionType'] |
|
129 | + 'grantee' => [ 'Audience', 'ContactPoint', 'Organization', 'Person' ], |
|
130 | + 'permissionType' => [ 'DigitalDocumentPermissionType' ] |
|
131 | 131 | ]; |
132 | 132 | |
133 | 133 | /** |
@@ -198,9 +198,9 @@ discard block |
||
198 | 198 | { |
199 | 199 | $rules = parent::rules(); |
200 | 200 | $rules = array_merge($rules, [ |
201 | - [['grantee','permissionType'], 'validateJsonSchema'], |
|
202 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
203 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
201 | + [ [ 'grantee', 'permissionType' ], 'validateJsonSchema' ], |
|
202 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
203 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
204 | 204 | ]); |
205 | 205 | |
206 | 206 | 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 | // ========================================================================= |
@@ -165,13 +165,13 @@ discard block |
||
165 | 165 | * @var array |
166 | 166 | */ |
167 | 167 | static protected $_schemaPropertyExpectedTypes = [ |
168 | - 'issuedBy' => ['Organization'], |
|
169 | - 'issuedThrough' => ['Service'], |
|
170 | - 'permitAudience' => ['Audience'], |
|
171 | - 'validFor' => ['Duration'], |
|
172 | - 'validFrom' => ['DateTime'], |
|
173 | - 'validIn' => ['AdministrativeArea'], |
|
174 | - 'validUntil' => ['Date'] |
|
168 | + 'issuedBy' => [ 'Organization' ], |
|
169 | + 'issuedThrough' => [ 'Service' ], |
|
170 | + 'permitAudience' => [ 'Audience' ], |
|
171 | + 'validFor' => [ 'Duration' ], |
|
172 | + 'validFrom' => [ 'DateTime' ], |
|
173 | + 'validIn' => [ 'AdministrativeArea' ], |
|
174 | + 'validUntil' => [ 'Date' ] |
|
175 | 175 | ]; |
176 | 176 | |
177 | 177 | /** |
@@ -247,9 +247,9 @@ discard block |
||
247 | 247 | { |
248 | 248 | $rules = parent::rules(); |
249 | 249 | $rules = array_merge($rules, [ |
250 | - [['issuedBy','issuedThrough','permitAudience','validFor','validFrom','validIn','validUntil'], 'validateJsonSchema'], |
|
251 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
252 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
250 | + [ [ 'issuedBy', 'issuedThrough', 'permitAudience', 'validFor', 'validFrom', 'validIn', 'validUntil' ], 'validateJsonSchema' ], |
|
251 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
252 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
253 | 253 | ]); |
254 | 254 | |
255 | 255 | 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(); |