@@ -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 | // ========================================================================= |
@@ -144,10 +144,10 @@ discard block |
||
144 | 144 | * @var array |
145 | 145 | */ |
146 | 146 | static protected $_schemaPropertyExpectedTypes = [ |
147 | - 'dateCreated' => ['Date','DateTime'], |
|
148 | - 'dateDeleted' => ['DateTime'], |
|
149 | - 'dateModified' => ['Date','DateTime'], |
|
150 | - 'item' => ['Thing'] |
|
147 | + 'dateCreated' => [ 'Date', 'DateTime' ], |
|
148 | + 'dateDeleted' => [ 'DateTime' ], |
|
149 | + 'dateModified' => [ 'Date', 'DateTime' ], |
|
150 | + 'item' => [ 'Thing' ] |
|
151 | 151 | ]; |
152 | 152 | |
153 | 153 | /** |
@@ -220,9 +220,9 @@ discard block |
||
220 | 220 | { |
221 | 221 | $rules = parent::rules(); |
222 | 222 | $rules = array_merge($rules, [ |
223 | - [['dateCreated','dateDeleted','dateModified','item'], 'validateJsonSchema'], |
|
224 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
225 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
223 | + [ [ 'dateCreated', 'dateDeleted', 'dateModified', 'item' ], 'validateJsonSchema' ], |
|
224 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
225 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
226 | 226 | ]); |
227 | 227 | |
228 | 228 | 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(); |
@@ -61,35 +61,35 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @var array |
63 | 63 | */ |
64 | - static public $schemaPropertyNames = []; |
|
64 | + static public $schemaPropertyNames = [ ]; |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * The Schema.org composed Property Expected Types |
68 | 68 | * |
69 | 69 | * @var array |
70 | 70 | */ |
71 | - static public $schemaPropertyExpectedTypes = []; |
|
71 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * The Schema.org composed Property Descriptions |
75 | 75 | * |
76 | 76 | * @var array |
77 | 77 | */ |
78 | - static public $schemaPropertyDescriptions = []; |
|
78 | + static public $schemaPropertyDescriptions = [ ]; |
|
79 | 79 | |
80 | 80 | /** |
81 | 81 | * The Schema.org composed Google Required Schema for this type |
82 | 82 | * |
83 | 83 | * @var array |
84 | 84 | */ |
85 | - static public $googleRequiredSchema = []; |
|
85 | + static public $googleRequiredSchema = [ ]; |
|
86 | 86 | |
87 | 87 | /** |
88 | 88 | * The Schema.org composed Google Recommended Schema for this type |
89 | 89 | * |
90 | 90 | * @var array |
91 | 91 | */ |
92 | - static public $googleRecommendedSchema = []; |
|
92 | + static public $googleRecommendedSchema = [ ]; |
|
93 | 93 | |
94 | 94 | // Public Properties |
95 | 95 | // ========================================================================= |
@@ -399,38 +399,38 @@ discard block |
||
399 | 399 | * @var array |
400 | 400 | */ |
401 | 401 | static protected $_schemaPropertyExpectedTypes = [ |
402 | - 'additionalProperty' => ['PropertyValue'], |
|
403 | - 'aggregateRating' => ['AggregateRating'], |
|
404 | - 'audience' => ['Audience'], |
|
405 | - 'award' => ['Text'], |
|
406 | - 'brand' => ['Brand','Organization'], |
|
407 | - 'category' => ['PhysicalActivityCategory','Text','Thing'], |
|
408 | - 'color' => ['Text'], |
|
409 | - 'depth' => ['Distance','QuantitativeValue'], |
|
410 | - 'gtin12' => ['Text'], |
|
411 | - 'gtin13' => ['Text'], |
|
412 | - 'gtin14' => ['Text'], |
|
413 | - 'gtin8' => ['Text'], |
|
414 | - 'height' => ['Distance','QuantitativeValue'], |
|
415 | - 'isAccessoryOrSparePartFor' => ['Product'], |
|
416 | - 'isConsumableFor' => ['Product'], |
|
417 | - 'isRelatedTo' => ['Product','Service'], |
|
418 | - 'isSimilarTo' => ['Product','Service'], |
|
419 | - 'itemCondition' => ['OfferItemCondition'], |
|
420 | - 'logo' => ['ImageObject','URL'], |
|
421 | - 'manufacturer' => ['Organization'], |
|
422 | - 'material' => ['Product','Text','URL'], |
|
423 | - 'model' => ['ProductModel','Text'], |
|
424 | - 'mpn' => ['Text'], |
|
425 | - 'offers' => ['Offer'], |
|
426 | - 'productID' => ['Text'], |
|
427 | - 'productionDate' => ['Date'], |
|
428 | - 'purchaseDate' => ['Date'], |
|
429 | - 'releaseDate' => ['Date'], |
|
430 | - 'review' => ['Review'], |
|
431 | - 'sku' => ['Text'], |
|
432 | - 'weight' => ['QuantitativeValue'], |
|
433 | - 'width' => ['Distance','QuantitativeValue'] |
|
402 | + 'additionalProperty' => [ 'PropertyValue' ], |
|
403 | + 'aggregateRating' => [ 'AggregateRating' ], |
|
404 | + 'audience' => [ 'Audience' ], |
|
405 | + 'award' => [ 'Text' ], |
|
406 | + 'brand' => [ 'Brand', 'Organization' ], |
|
407 | + 'category' => [ 'PhysicalActivityCategory', 'Text', 'Thing' ], |
|
408 | + 'color' => [ 'Text' ], |
|
409 | + 'depth' => [ 'Distance', 'QuantitativeValue' ], |
|
410 | + 'gtin12' => [ 'Text' ], |
|
411 | + 'gtin13' => [ 'Text' ], |
|
412 | + 'gtin14' => [ 'Text' ], |
|
413 | + 'gtin8' => [ 'Text' ], |
|
414 | + 'height' => [ 'Distance', 'QuantitativeValue' ], |
|
415 | + 'isAccessoryOrSparePartFor' => [ 'Product' ], |
|
416 | + 'isConsumableFor' => [ 'Product' ], |
|
417 | + 'isRelatedTo' => [ 'Product', 'Service' ], |
|
418 | + 'isSimilarTo' => [ 'Product', 'Service' ], |
|
419 | + 'itemCondition' => [ 'OfferItemCondition' ], |
|
420 | + 'logo' => [ 'ImageObject', 'URL' ], |
|
421 | + 'manufacturer' => [ 'Organization' ], |
|
422 | + 'material' => [ 'Product', 'Text', 'URL' ], |
|
423 | + 'model' => [ 'ProductModel', 'Text' ], |
|
424 | + 'mpn' => [ 'Text' ], |
|
425 | + 'offers' => [ 'Offer' ], |
|
426 | + 'productID' => [ 'Text' ], |
|
427 | + 'productionDate' => [ 'Date' ], |
|
428 | + 'purchaseDate' => [ 'Date' ], |
|
429 | + 'releaseDate' => [ 'Date' ], |
|
430 | + 'review' => [ 'Review' ], |
|
431 | + 'sku' => [ 'Text' ], |
|
432 | + 'weight' => [ 'QuantitativeValue' ], |
|
433 | + 'width' => [ 'Distance', 'QuantitativeValue' ] |
|
434 | 434 | ]; |
435 | 435 | |
436 | 436 | /** |
@@ -531,9 +531,9 @@ discard block |
||
531 | 531 | { |
532 | 532 | $rules = parent::rules(); |
533 | 533 | $rules = array_merge($rules, [ |
534 | - [['additionalProperty','aggregateRating','audience','award','brand','category','color','depth','gtin12','gtin13','gtin14','gtin8','height','isAccessoryOrSparePartFor','isConsumableFor','isRelatedTo','isSimilarTo','itemCondition','logo','manufacturer','material','model','mpn','offers','productID','productionDate','purchaseDate','releaseDate','review','sku','weight','width'], 'validateJsonSchema'], |
|
535 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
536 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
534 | + [ [ 'additionalProperty', 'aggregateRating', 'audience', 'award', 'brand', 'category', 'color', 'depth', 'gtin12', 'gtin13', 'gtin14', 'gtin8', 'height', 'isAccessoryOrSparePartFor', 'isConsumableFor', 'isRelatedTo', 'isSimilarTo', 'itemCondition', 'logo', 'manufacturer', 'material', 'model', 'mpn', 'offers', 'productID', 'productionDate', 'purchaseDate', 'releaseDate', 'review', 'sku', 'weight', 'width' ], 'validateJsonSchema' ], |
|
535 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
536 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
537 | 537 | ]); |
538 | 538 | |
539 | 539 | 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 | // ========================================================================= |
@@ -256,23 +256,23 @@ discard block |
||
256 | 256 | * @var array |
257 | 257 | */ |
258 | 258 | static protected $_schemaPropertyExpectedTypes = [ |
259 | - 'actor' => ['Person'], |
|
260 | - 'characterAttribute' => ['Thing'], |
|
261 | - 'cheatCode' => ['CreativeWork'], |
|
262 | - 'containsSeason' => ['CreativeWorkSeason'], |
|
263 | - 'director' => ['Person'], |
|
264 | - 'episode' => ['Episode'], |
|
265 | - 'gameItem' => ['Thing'], |
|
266 | - 'gameLocation' => ['Place','PostalAddress','URL'], |
|
267 | - 'gamePlatform' => ['Text','Thing','URL'], |
|
268 | - 'musicBy' => ['MusicGroup','Person'], |
|
269 | - 'numberOfEpisodes' => ['Integer'], |
|
270 | - 'numberOfPlayers' => ['QuantitativeValue'], |
|
271 | - 'numberOfSeasons' => ['Integer'], |
|
272 | - 'playMode' => ['GamePlayMode'], |
|
273 | - 'productionCompany' => ['Organization'], |
|
274 | - 'quest' => ['Thing'], |
|
275 | - 'trailer' => ['VideoObject'] |
|
259 | + 'actor' => [ 'Person' ], |
|
260 | + 'characterAttribute' => [ 'Thing' ], |
|
261 | + 'cheatCode' => [ 'CreativeWork' ], |
|
262 | + 'containsSeason' => [ 'CreativeWorkSeason' ], |
|
263 | + 'director' => [ 'Person' ], |
|
264 | + 'episode' => [ 'Episode' ], |
|
265 | + 'gameItem' => [ 'Thing' ], |
|
266 | + 'gameLocation' => [ 'Place', 'PostalAddress', 'URL' ], |
|
267 | + 'gamePlatform' => [ 'Text', 'Thing', 'URL' ], |
|
268 | + 'musicBy' => [ 'MusicGroup', 'Person' ], |
|
269 | + 'numberOfEpisodes' => [ 'Integer' ], |
|
270 | + 'numberOfPlayers' => [ 'QuantitativeValue' ], |
|
271 | + 'numberOfSeasons' => [ 'Integer' ], |
|
272 | + 'playMode' => [ 'GamePlayMode' ], |
|
273 | + 'productionCompany' => [ 'Organization' ], |
|
274 | + 'quest' => [ 'Thing' ], |
|
275 | + 'trailer' => [ 'VideoObject' ] |
|
276 | 276 | ]; |
277 | 277 | |
278 | 278 | /** |
@@ -358,9 +358,9 @@ discard block |
||
358 | 358 | { |
359 | 359 | $rules = parent::rules(); |
360 | 360 | $rules = array_merge($rules, [ |
361 | - [['actor','characterAttribute','cheatCode','containsSeason','director','episode','gameItem','gameLocation','gamePlatform','musicBy','numberOfEpisodes','numberOfPlayers','numberOfSeasons','playMode','productionCompany','quest','trailer'], 'validateJsonSchema'], |
|
362 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
363 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
361 | + [ [ 'actor', 'characterAttribute', 'cheatCode', 'containsSeason', 'director', 'episode', 'gameItem', 'gameLocation', 'gamePlatform', 'musicBy', 'numberOfEpisodes', 'numberOfPlayers', 'numberOfSeasons', 'playMode', 'productionCompany', 'quest', 'trailer' ], 'validateJsonSchema' ], |
|
362 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
363 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
364 | 364 | ]); |
365 | 365 | |
366 | 366 | 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 | // ========================================================================= |
@@ -205,18 +205,18 @@ discard block |
||
205 | 205 | * @var array |
206 | 206 | */ |
207 | 207 | static protected $_schemaPropertyExpectedTypes = [ |
208 | - 'calories' => ['Energy'], |
|
209 | - 'carbohydrateContent' => ['Mass'], |
|
210 | - 'cholesterolContent' => ['Mass'], |
|
211 | - 'fatContent' => ['Mass'], |
|
212 | - 'fiberContent' => ['Mass'], |
|
213 | - 'proteinContent' => ['Mass'], |
|
214 | - 'saturatedFatContent' => ['Mass'], |
|
215 | - 'servingSize' => ['Text'], |
|
216 | - 'sodiumContent' => ['Mass'], |
|
217 | - 'sugarContent' => ['Mass'], |
|
218 | - 'transFatContent' => ['Mass'], |
|
219 | - 'unsaturatedFatContent' => ['Mass'] |
|
208 | + 'calories' => [ 'Energy' ], |
|
209 | + 'carbohydrateContent' => [ 'Mass' ], |
|
210 | + 'cholesterolContent' => [ 'Mass' ], |
|
211 | + 'fatContent' => [ 'Mass' ], |
|
212 | + 'fiberContent' => [ 'Mass' ], |
|
213 | + 'proteinContent' => [ 'Mass' ], |
|
214 | + 'saturatedFatContent' => [ 'Mass' ], |
|
215 | + 'servingSize' => [ 'Text' ], |
|
216 | + 'sodiumContent' => [ 'Mass' ], |
|
217 | + 'sugarContent' => [ 'Mass' ], |
|
218 | + 'transFatContent' => [ 'Mass' ], |
|
219 | + 'unsaturatedFatContent' => [ 'Mass' ] |
|
220 | 220 | ]; |
221 | 221 | |
222 | 222 | /** |
@@ -297,9 +297,9 @@ discard block |
||
297 | 297 | { |
298 | 298 | $rules = parent::rules(); |
299 | 299 | $rules = array_merge($rules, [ |
300 | - [['calories','carbohydrateContent','cholesterolContent','fatContent','fiberContent','proteinContent','saturatedFatContent','servingSize','sodiumContent','sugarContent','transFatContent','unsaturatedFatContent'], 'validateJsonSchema'], |
|
301 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
302 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
300 | + [ [ 'calories', 'carbohydrateContent', 'cholesterolContent', 'fatContent', 'fiberContent', 'proteinContent', 'saturatedFatContent', 'servingSize', 'sodiumContent', 'sugarContent', 'transFatContent', 'unsaturatedFatContent' ], 'validateJsonSchema' ], |
|
301 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
302 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
303 | 303 | ]); |
304 | 304 | |
305 | 305 | 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(); |
@@ -61,35 +61,35 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @var array |
63 | 63 | */ |
64 | - static public $schemaPropertyNames = []; |
|
64 | + static public $schemaPropertyNames = [ ]; |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * The Schema.org composed Property Expected Types |
68 | 68 | * |
69 | 69 | * @var array |
70 | 70 | */ |
71 | - static public $schemaPropertyExpectedTypes = []; |
|
71 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * The Schema.org composed Property Descriptions |
75 | 75 | * |
76 | 76 | * @var array |
77 | 77 | */ |
78 | - static public $schemaPropertyDescriptions = []; |
|
78 | + static public $schemaPropertyDescriptions = [ ]; |
|
79 | 79 | |
80 | 80 | /** |
81 | 81 | * The Schema.org composed Google Required Schema for this type |
82 | 82 | * |
83 | 83 | * @var array |
84 | 84 | */ |
85 | - static public $googleRequiredSchema = []; |
|
85 | + static public $googleRequiredSchema = [ ]; |
|
86 | 86 | |
87 | 87 | /** |
88 | 88 | * The Schema.org composed Google Recommended Schema for this type |
89 | 89 | * |
90 | 90 | * @var array |
91 | 91 | */ |
92 | - static public $googleRecommendedSchema = []; |
|
92 | + static public $googleRecommendedSchema = [ ]; |
|
93 | 93 | |
94 | 94 | // Public Properties |
95 | 95 | // ========================================================================= |
@@ -190,15 +190,15 @@ discard block |
||
190 | 190 | * @var array |
191 | 191 | */ |
192 | 192 | static protected $_schemaPropertyExpectedTypes = [ |
193 | - 'actor' => ['Person'], |
|
194 | - 'cheatCode' => ['CreativeWork'], |
|
195 | - 'director' => ['Person'], |
|
196 | - 'gamePlatform' => ['Text','Thing','URL'], |
|
197 | - 'gameServer' => ['GameServer'], |
|
198 | - 'gameTip' => ['CreativeWork'], |
|
199 | - 'musicBy' => ['MusicGroup','Person'], |
|
200 | - 'playMode' => ['GamePlayMode'], |
|
201 | - 'trailer' => ['VideoObject'] |
|
193 | + 'actor' => [ 'Person' ], |
|
194 | + 'cheatCode' => [ 'CreativeWork' ], |
|
195 | + 'director' => [ 'Person' ], |
|
196 | + 'gamePlatform' => [ 'Text', 'Thing', 'URL' ], |
|
197 | + 'gameServer' => [ 'GameServer' ], |
|
198 | + 'gameTip' => [ 'CreativeWork' ], |
|
199 | + 'musicBy' => [ 'MusicGroup', 'Person' ], |
|
200 | + 'playMode' => [ 'GamePlayMode' ], |
|
201 | + 'trailer' => [ 'VideoObject' ] |
|
202 | 202 | ]; |
203 | 203 | |
204 | 204 | /** |
@@ -276,9 +276,9 @@ discard block |
||
276 | 276 | { |
277 | 277 | $rules = parent::rules(); |
278 | 278 | $rules = array_merge($rules, [ |
279 | - [['actor','cheatCode','director','gamePlatform','gameServer','gameTip','musicBy','playMode','trailer'], 'validateJsonSchema'], |
|
280 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
281 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
279 | + [ [ 'actor', 'cheatCode', 'director', 'gamePlatform', 'gameServer', 'gameTip', 'musicBy', 'playMode', 'trailer' ], 'validateJsonSchema' ], |
|
280 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
281 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
282 | 282 | ]); |
283 | 283 | |
284 | 284 | 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 | // ========================================================================= |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * @var array |
119 | 119 | */ |
120 | 120 | static protected $_schemaPropertyExpectedTypes = [ |
121 | - 'purpose' => ['MedicalDevicePurpose','Thing'] |
|
121 | + 'purpose' => [ 'MedicalDevicePurpose', 'Thing' ] |
|
122 | 122 | ]; |
123 | 123 | |
124 | 124 | /** |
@@ -188,9 +188,9 @@ discard block |
||
188 | 188 | { |
189 | 189 | $rules = parent::rules(); |
190 | 190 | $rules = array_merge($rules, [ |
191 | - [['purpose'], 'validateJsonSchema'], |
|
192 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
193 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
191 | + [ [ 'purpose' ], 'validateJsonSchema' ], |
|
192 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
193 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
194 | 194 | ]); |
195 | 195 | |
196 | 196 | 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(); |
@@ -61,35 +61,35 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @var array |
63 | 63 | */ |
64 | - static public $schemaPropertyNames = []; |
|
64 | + static public $schemaPropertyNames = [ ]; |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * The Schema.org composed Property Expected Types |
68 | 68 | * |
69 | 69 | * @var array |
70 | 70 | */ |
71 | - static public $schemaPropertyExpectedTypes = []; |
|
71 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * The Schema.org composed Property Descriptions |
75 | 75 | * |
76 | 76 | * @var array |
77 | 77 | */ |
78 | - static public $schemaPropertyDescriptions = []; |
|
78 | + static public $schemaPropertyDescriptions = [ ]; |
|
79 | 79 | |
80 | 80 | /** |
81 | 81 | * The Schema.org composed Google Required Schema for this type |
82 | 82 | * |
83 | 83 | * @var array |
84 | 84 | */ |
85 | - static public $googleRequiredSchema = []; |
|
85 | + static public $googleRequiredSchema = [ ]; |
|
86 | 86 | |
87 | 87 | /** |
88 | 88 | * The Schema.org composed Google Recommended Schema for this type |
89 | 89 | * |
90 | 90 | * @var array |
91 | 91 | */ |
92 | - static public $googleRecommendedSchema = []; |
|
92 | + static public $googleRecommendedSchema = [ ]; |
|
93 | 93 | |
94 | 94 | // Public Properties |
95 | 95 | // ========================================================================= |
@@ -137,9 +137,9 @@ discard block |
||
137 | 137 | * @var array |
138 | 138 | */ |
139 | 139 | static protected $_schemaPropertyExpectedTypes = [ |
140 | - 'downvoteCount' => ['Integer'], |
|
141 | - 'parentItem' => ['Question'], |
|
142 | - 'upvoteCount' => ['Integer'] |
|
140 | + 'downvoteCount' => [ 'Integer' ], |
|
141 | + 'parentItem' => [ 'Question' ], |
|
142 | + 'upvoteCount' => [ 'Integer' ] |
|
143 | 143 | ]; |
144 | 144 | |
145 | 145 | /** |
@@ -211,9 +211,9 @@ discard block |
||
211 | 211 | { |
212 | 212 | $rules = parent::rules(); |
213 | 213 | $rules = array_merge($rules, [ |
214 | - [['downvoteCount','parentItem','upvoteCount'], 'validateJsonSchema'], |
|
215 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
216 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
214 | + [ [ 'downvoteCount', 'parentItem', 'upvoteCount' ], 'validateJsonSchema' ], |
|
215 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
216 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
217 | 217 | ]); |
218 | 218 | |
219 | 219 | 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 | // ========================================================================= |
@@ -135,8 +135,8 @@ discard block |
||
135 | 135 | * @var array |
136 | 136 | */ |
137 | 137 | static protected $_schemaPropertyExpectedTypes = [ |
138 | - 'numberOfRooms' => ['Number','QuantitativeValue'], |
|
139 | - 'occupancy' => ['QuantitativeValue'] |
|
138 | + 'numberOfRooms' => [ 'Number', 'QuantitativeValue' ], |
|
139 | + 'occupancy' => [ 'QuantitativeValue' ] |
|
140 | 140 | ]; |
141 | 141 | |
142 | 142 | /** |
@@ -207,9 +207,9 @@ discard block |
||
207 | 207 | { |
208 | 208 | $rules = parent::rules(); |
209 | 209 | $rules = array_merge($rules, [ |
210 | - [['numberOfRooms','occupancy'], 'validateJsonSchema'], |
|
211 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
212 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
210 | + [ [ 'numberOfRooms', 'occupancy' ], 'validateJsonSchema' ], |
|
211 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
212 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
213 | 213 | ]); |
214 | 214 | |
215 | 215 | 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 | // ========================================================================= |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @var array |
120 | 120 | */ |
121 | 121 | static protected $_schemaPropertyExpectedTypes = [ |
122 | - 'estimatedCost' => ['MonetaryAmount','Text'] |
|
122 | + 'estimatedCost' => [ 'MonetaryAmount', 'Text' ] |
|
123 | 123 | ]; |
124 | 124 | |
125 | 125 | /** |
@@ -189,9 +189,9 @@ discard block |
||
189 | 189 | { |
190 | 190 | $rules = parent::rules(); |
191 | 191 | $rules = array_merge($rules, [ |
192 | - [['estimatedCost'], 'validateJsonSchema'], |
|
193 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
194 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
192 | + [ [ 'estimatedCost' ], 'validateJsonSchema' ], |
|
193 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
194 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
195 | 195 | ]); |
196 | 196 | |
197 | 197 | 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(); |