@@ -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 | // ========================================================================= |
@@ -182,14 +182,14 @@ discard block |
||
182 | 182 | * @var array |
183 | 183 | */ |
184 | 184 | static protected $_schemaPropertyExpectedTypes = [ |
185 | - 'estimatedCost' => ['MonetaryAmount','Text'], |
|
186 | - 'performTime' => ['Duration'], |
|
187 | - 'prepTime' => ['Duration'], |
|
188 | - 'steps' => ['CreativeWork','ItemList','Text'], |
|
189 | - 'supply' => ['HowToSupply','Text'], |
|
190 | - 'tool' => ['HowToTool','Text'], |
|
191 | - 'totalTime' => ['Duration'], |
|
192 | - 'yield' => ['QuantitativeValue','Text'] |
|
185 | + 'estimatedCost' => [ 'MonetaryAmount', 'Text' ], |
|
186 | + 'performTime' => [ 'Duration' ], |
|
187 | + 'prepTime' => [ 'Duration' ], |
|
188 | + 'steps' => [ 'CreativeWork', 'ItemList', 'Text' ], |
|
189 | + 'supply' => [ 'HowToSupply', 'Text' ], |
|
190 | + 'tool' => [ 'HowToTool', 'Text' ], |
|
191 | + 'totalTime' => [ 'Duration' ], |
|
192 | + 'yield' => [ 'QuantitativeValue', 'Text' ] |
|
193 | 193 | ]; |
194 | 194 | |
195 | 195 | /** |
@@ -266,9 +266,9 @@ discard block |
||
266 | 266 | { |
267 | 267 | $rules = parent::rules(); |
268 | 268 | $rules = array_merge($rules, [ |
269 | - [['estimatedCost','performTime','prepTime','steps','supply','tool','totalTime','yield'], 'validateJsonSchema'], |
|
270 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
271 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
269 | + [ [ 'estimatedCost', 'performTime', 'prepTime', 'steps', 'supply', 'tool', 'totalTime', 'yield' ], 'validateJsonSchema' ], |
|
270 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
271 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
272 | 272 | ]); |
273 | 273 | |
274 | 274 | 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 | // ========================================================================= |
@@ -215,18 +215,18 @@ discard block |
||
215 | 215 | * @var array |
216 | 216 | */ |
217 | 217 | static protected $_schemaPropertyExpectedTypes = [ |
218 | - 'artEdition' => ['Integer','Text'], |
|
219 | - 'artMedium' => ['Text','URL'], |
|
220 | - 'artform' => ['Text','URL'], |
|
221 | - 'artist' => ['Person'], |
|
222 | - 'artworkSurface' => ['Text','URL'], |
|
223 | - 'colorist' => ['Person'], |
|
224 | - 'depth' => ['Distance','QuantitativeValue'], |
|
225 | - 'height' => ['Distance','QuantitativeValue'], |
|
226 | - 'inker' => ['Person'], |
|
227 | - 'letterer' => ['Person'], |
|
228 | - 'penciler' => ['Person'], |
|
229 | - 'width' => ['Distance','QuantitativeValue'] |
|
218 | + 'artEdition' => [ 'Integer', 'Text' ], |
|
219 | + 'artMedium' => [ 'Text', 'URL' ], |
|
220 | + 'artform' => [ 'Text', 'URL' ], |
|
221 | + 'artist' => [ 'Person' ], |
|
222 | + 'artworkSurface' => [ 'Text', 'URL' ], |
|
223 | + 'colorist' => [ 'Person' ], |
|
224 | + 'depth' => [ 'Distance', 'QuantitativeValue' ], |
|
225 | + 'height' => [ 'Distance', 'QuantitativeValue' ], |
|
226 | + 'inker' => [ 'Person' ], |
|
227 | + 'letterer' => [ 'Person' ], |
|
228 | + 'penciler' => [ 'Person' ], |
|
229 | + 'width' => [ 'Distance', 'QuantitativeValue' ] |
|
230 | 230 | ]; |
231 | 231 | |
232 | 232 | /** |
@@ -307,9 +307,9 @@ discard block |
||
307 | 307 | { |
308 | 308 | $rules = parent::rules(); |
309 | 309 | $rules = array_merge($rules, [ |
310 | - [['artEdition','artMedium','artform','artist','artworkSurface','colorist','depth','height','inker','letterer','penciler','width'], 'validateJsonSchema'], |
|
311 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
312 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
310 | + [ [ 'artEdition', 'artMedium', 'artform', 'artist', 'artworkSurface', 'colorist', 'depth', 'height', 'inker', 'letterer', 'penciler', 'width' ], 'validateJsonSchema' ], |
|
311 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
312 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
313 | 313 | ]); |
314 | 314 | |
315 | 315 | 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 | // ========================================================================= |
@@ -138,9 +138,9 @@ discard block |
||
138 | 138 | * @var array |
139 | 139 | */ |
140 | 140 | static protected $_schemaPropertyExpectedTypes = [ |
141 | - 'isVariantOf' => ['ProductModel'], |
|
142 | - 'predecessorOf' => ['ProductModel'], |
|
143 | - 'successorOf' => ['ProductModel'] |
|
141 | + 'isVariantOf' => [ 'ProductModel' ], |
|
142 | + 'predecessorOf' => [ 'ProductModel' ], |
|
143 | + 'successorOf' => [ 'ProductModel' ] |
|
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 | - [['isVariantOf','predecessorOf','successorOf'], '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 | + [ [ 'isVariantOf', 'predecessorOf', 'successorOf' ], '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(); |
@@ -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 | // ========================================================================= |
@@ -177,13 +177,13 @@ discard block |
||
177 | 177 | * @var array |
178 | 178 | */ |
179 | 179 | static protected $_schemaPropertyExpectedTypes = [ |
180 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
181 | - 'audience' => ['Audience'], |
|
182 | - 'availableLanguage' => ['Language','Text'], |
|
183 | - 'checkinTime' => ['DateTime'], |
|
184 | - 'checkoutTime' => ['DateTime'], |
|
185 | - 'petsAllowed' => ['Boolean','Text'], |
|
186 | - 'starRating' => ['Rating'] |
|
180 | + 'amenityFeature' => [ 'LocationFeatureSpecification' ], |
|
181 | + 'audience' => [ 'Audience' ], |
|
182 | + 'availableLanguage' => [ 'Language', 'Text' ], |
|
183 | + 'checkinTime' => [ 'DateTime' ], |
|
184 | + 'checkoutTime' => [ 'DateTime' ], |
|
185 | + 'petsAllowed' => [ 'Boolean', 'Text' ], |
|
186 | + 'starRating' => [ 'Rating' ] |
|
187 | 187 | ]; |
188 | 188 | |
189 | 189 | /** |
@@ -259,9 +259,9 @@ discard block |
||
259 | 259 | { |
260 | 260 | $rules = parent::rules(); |
261 | 261 | $rules = array_merge($rules, [ |
262 | - [['amenityFeature','audience','availableLanguage','checkinTime','checkoutTime','petsAllowed','starRating'], 'validateJsonSchema'], |
|
263 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
264 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
262 | + [ [ 'amenityFeature', 'audience', 'availableLanguage', 'checkinTime', 'checkoutTime', 'petsAllowed', 'starRating' ], 'validateJsonSchema' ], |
|
263 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
264 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
265 | 265 | ]); |
266 | 266 | |
267 | 267 | 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 | // ========================================================================= |
@@ -170,11 +170,11 @@ discard block |
||
170 | 170 | * @var array |
171 | 171 | */ |
172 | 172 | static protected $_schemaPropertyExpectedTypes = [ |
173 | - 'engineDisplacement' => ['QuantitativeValue'], |
|
174 | - 'enginePower' => ['QuantitativeValue'], |
|
175 | - 'engineType' => ['QualitativeValue','Text','URL'], |
|
176 | - 'fuelType' => ['QualitativeValue','Text','URL'], |
|
177 | - 'torque' => ['QuantitativeValue'] |
|
173 | + 'engineDisplacement' => [ 'QuantitativeValue' ], |
|
174 | + 'enginePower' => [ 'QuantitativeValue' ], |
|
175 | + 'engineType' => [ 'QualitativeValue', 'Text', 'URL' ], |
|
176 | + 'fuelType' => [ 'QualitativeValue', 'Text', 'URL' ], |
|
177 | + 'torque' => [ 'QuantitativeValue' ] |
|
178 | 178 | ]; |
179 | 179 | |
180 | 180 | /** |
@@ -248,9 +248,9 @@ discard block |
||
248 | 248 | { |
249 | 249 | $rules = parent::rules(); |
250 | 250 | $rules = array_merge($rules, [ |
251 | - [['engineDisplacement','enginePower','engineType','fuelType','torque'], 'validateJsonSchema'], |
|
252 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
253 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
251 | + [ [ 'engineDisplacement', 'enginePower', 'engineType', 'fuelType', 'torque' ], 'validateJsonSchema' ], |
|
252 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
253 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
254 | 254 | ]); |
255 | 255 | |
256 | 256 | 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 | // ========================================================================= |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * @var array |
121 | 121 | */ |
122 | 122 | static protected $_schemaPropertyExpectedTypes = [ |
123 | - 'issn' => ['Text'] |
|
123 | + 'issn' => [ 'Text' ] |
|
124 | 124 | ]; |
125 | 125 | |
126 | 126 | /** |
@@ -190,9 +190,9 @@ discard block |
||
190 | 190 | { |
191 | 191 | $rules = parent::rules(); |
192 | 192 | $rules = array_merge($rules, [ |
193 | - [['issn'], 'validateJsonSchema'], |
|
194 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
195 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
193 | + [ [ 'issn' ], 'validateJsonSchema' ], |
|
194 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
195 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
196 | 196 | ]); |
197 | 197 | |
198 | 198 | 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 | // ========================================================================= |
@@ -197,16 +197,16 @@ discard block |
||
197 | 197 | * @var array |
198 | 198 | */ |
199 | 199 | static protected $_schemaPropertyExpectedTypes = [ |
200 | - 'actor' => ['Person'], |
|
201 | - 'director' => ['Person'], |
|
202 | - 'endDate' => ['Date','DateTime'], |
|
203 | - 'episode' => ['Episode'], |
|
204 | - 'numberOfEpisodes' => ['Integer'], |
|
205 | - 'partOfSeries' => ['CreativeWorkSeries'], |
|
206 | - 'productionCompany' => ['Organization'], |
|
207 | - 'seasonNumber' => ['Integer','Text'], |
|
208 | - 'startDate' => ['Date','DateTime'], |
|
209 | - 'trailer' => ['VideoObject'] |
|
200 | + 'actor' => [ 'Person' ], |
|
201 | + 'director' => [ 'Person' ], |
|
202 | + 'endDate' => [ 'Date', 'DateTime' ], |
|
203 | + 'episode' => [ 'Episode' ], |
|
204 | + 'numberOfEpisodes' => [ 'Integer' ], |
|
205 | + 'partOfSeries' => [ 'CreativeWorkSeries' ], |
|
206 | + 'productionCompany' => [ 'Organization' ], |
|
207 | + 'seasonNumber' => [ 'Integer', 'Text' ], |
|
208 | + 'startDate' => [ 'Date', 'DateTime' ], |
|
209 | + 'trailer' => [ 'VideoObject' ] |
|
210 | 210 | ]; |
211 | 211 | |
212 | 212 | /** |
@@ -285,9 +285,9 @@ discard block |
||
285 | 285 | { |
286 | 286 | $rules = parent::rules(); |
287 | 287 | $rules = array_merge($rules, [ |
288 | - [['actor','director','endDate','episode','numberOfEpisodes','partOfSeries','productionCompany','seasonNumber','startDate','trailer'], 'validateJsonSchema'], |
|
289 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
290 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
288 | + [ [ 'actor', 'director', 'endDate', 'episode', 'numberOfEpisodes', 'partOfSeries', 'productionCompany', 'seasonNumber', 'startDate', 'trailer' ], 'validateJsonSchema' ], |
|
289 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
290 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
291 | 291 | ]); |
292 | 292 | |
293 | 293 | 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 | // ========================================================================= |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @var array |
120 | 120 | */ |
121 | 121 | static protected $_schemaPropertyExpectedTypes = [ |
122 | - 'inLanguage' => ['Language','Text'] |
|
122 | + 'inLanguage' => [ 'Language', 'Text' ] |
|
123 | 123 | ]; |
124 | 124 | |
125 | 125 | /** |
@@ -189,9 +189,9 @@ discard block |
||
189 | 189 | { |
190 | 190 | $rules = parent::rules(); |
191 | 191 | $rules = array_merge($rules, [ |
192 | - [['inLanguage'], '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 | + [ [ 'inLanguage' ], '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(); |
@@ -63,35 +63,35 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @var array |
65 | 65 | */ |
66 | - static public $schemaPropertyNames = []; |
|
66 | + static public $schemaPropertyNames = [ ]; |
|
67 | 67 | |
68 | 68 | /** |
69 | 69 | * The Schema.org composed Property Expected Types |
70 | 70 | * |
71 | 71 | * @var array |
72 | 72 | */ |
73 | - static public $schemaPropertyExpectedTypes = []; |
|
73 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
74 | 74 | |
75 | 75 | /** |
76 | 76 | * The Schema.org composed Property Descriptions |
77 | 77 | * |
78 | 78 | * @var array |
79 | 79 | */ |
80 | - static public $schemaPropertyDescriptions = []; |
|
80 | + static public $schemaPropertyDescriptions = [ ]; |
|
81 | 81 | |
82 | 82 | /** |
83 | 83 | * The Schema.org composed Google Required Schema for this type |
84 | 84 | * |
85 | 85 | * @var array |
86 | 86 | */ |
87 | - static public $googleRequiredSchema = []; |
|
87 | + static public $googleRequiredSchema = [ ]; |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * The Schema.org composed Google Recommended Schema for this type |
91 | 91 | * |
92 | 92 | * @var array |
93 | 93 | */ |
94 | - static public $googleRecommendedSchema = []; |
|
94 | + static public $googleRecommendedSchema = [ ]; |
|
95 | 95 | |
96 | 96 | // Public Properties |
97 | 97 | // ========================================================================= |
@@ -147,10 +147,10 @@ discard block |
||
147 | 147 | * @var array |
148 | 148 | */ |
149 | 149 | static protected $_schemaPropertyExpectedTypes = [ |
150 | - 'pageEnd' => ['Integer','Text'], |
|
151 | - 'pageStart' => ['Integer','Text'], |
|
152 | - 'pagination' => ['Text'], |
|
153 | - 'volumeNumber' => ['Integer','Text'] |
|
150 | + 'pageEnd' => [ 'Integer', 'Text' ], |
|
151 | + 'pageStart' => [ 'Integer', 'Text' ], |
|
152 | + 'pagination' => [ 'Text' ], |
|
153 | + 'volumeNumber' => [ 'Integer', 'Text' ] |
|
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 | - [['pageEnd','pageStart','pagination','volumeNumber'], '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 | + [ [ 'pageEnd', 'pageStart', 'pagination', 'volumeNumber' ], '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(); |