@@ -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(); |
@@ -182,10 +182,10 @@ discard block |
||
182 | 182 | 'additionalProperty' => ['PropertyValue'], |
183 | 183 | 'maxValue' => ['Number'], |
184 | 184 | 'minValue' => ['Number'], |
185 | - 'unitCode' => ['Text','URL'], |
|
185 | + 'unitCode' => ['Text', 'URL'], |
|
186 | 186 | 'unitText' => ['Text'], |
187 | - 'value' => ['Boolean','Number','StructuredValue','Text'], |
|
188 | - 'valueReference' => ['Enumeration','PropertyValue','QualitativeValue','QuantitativeValue','StructuredValue'] |
|
187 | + 'value' => ['Boolean', 'Number', 'StructuredValue', 'Text'], |
|
188 | + 'valueReference' => ['Enumeration', 'PropertyValue', 'QualitativeValue', 'QuantitativeValue', 'StructuredValue'] |
|
189 | 189 | ]; |
190 | 190 | |
191 | 191 | /** |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | { |
262 | 262 | $rules = parent::rules(); |
263 | 263 | $rules = array_merge($rules, [ |
264 | - [['additionalProperty','maxValue','minValue','unitCode','unitText','value','valueReference'], 'validateJsonSchema'], |
|
264 | + [['additionalProperty', 'maxValue', 'minValue', 'unitCode', 'unitText', 'value', 'valueReference'], 'validateJsonSchema'], |
|
265 | 265 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
266 | 266 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
267 | 267 | ]); |
@@ -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(); |
@@ -226,7 +226,7 @@ |
||
226 | 226 | { |
227 | 227 | $rules = parent::rules(); |
228 | 228 | $rules = array_merge($rules, [ |
229 | - [['currenciesAccepted','openingHours','paymentAccepted','priceRange'], 'validateJsonSchema'], |
|
229 | + [['currenciesAccepted', 'openingHours', 'paymentAccepted', 'priceRange'], 'validateJsonSchema'], |
|
230 | 230 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
231 | 231 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
232 | 232 | ]); |
@@ -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(); |
@@ -226,7 +226,7 @@ |
||
226 | 226 | { |
227 | 227 | $rules = parent::rules(); |
228 | 228 | $rules = array_merge($rules, [ |
229 | - [['currenciesAccepted','openingHours','paymentAccepted','priceRange'], 'validateJsonSchema'], |
|
229 | + [['currenciesAccepted', 'openingHours', 'paymentAccepted', 'priceRange'], 'validateJsonSchema'], |
|
230 | 230 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
231 | 231 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
232 | 232 | ]); |
@@ -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(); |
@@ -226,7 +226,7 @@ |
||
226 | 226 | { |
227 | 227 | $rules = parent::rules(); |
228 | 228 | $rules = array_merge($rules, [ |
229 | - [['currenciesAccepted','openingHours','paymentAccepted','priceRange'], 'validateJsonSchema'], |
|
229 | + [['currenciesAccepted', 'openingHours', 'paymentAccepted', 'priceRange'], 'validateJsonSchema'], |
|
230 | 230 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
231 | 231 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
232 | 232 | ]); |
@@ -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(); |
@@ -121,7 +121,7 @@ |
||
121 | 121 | * @var array |
122 | 122 | */ |
123 | 123 | static protected $_schemaPropertyExpectedTypes = [ |
124 | - 'supersededBy' => ['Class','Enumeration','Property'] |
|
124 | + 'supersededBy' => ['Class', 'Enumeration', 'Property'] |
|
125 | 125 | ]; |
126 | 126 | |
127 | 127 | /** |
@@ -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(); |
@@ -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(); |
@@ -226,7 +226,7 @@ |
||
226 | 226 | { |
227 | 227 | $rules = parent::rules(); |
228 | 228 | $rules = array_merge($rules, [ |
229 | - [['currenciesAccepted','openingHours','paymentAccepted','priceRange'], 'validateJsonSchema'], |
|
229 | + [['currenciesAccepted', 'openingHours', 'paymentAccepted', 'priceRange'], 'validateJsonSchema'], |
|
230 | 230 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
231 | 231 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
232 | 232 | ]); |
@@ -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(); |
@@ -155,10 +155,10 @@ discard block |
||
155 | 155 | * @var array |
156 | 156 | */ |
157 | 157 | static protected $_schemaPropertyExpectedTypes = [ |
158 | - 'acceptedAnswer' => ['Answer','ItemList'], |
|
158 | + 'acceptedAnswer' => ['Answer', 'ItemList'], |
|
159 | 159 | 'answerCount' => ['Integer'], |
160 | 160 | 'downvoteCount' => ['Integer'], |
161 | - 'suggestedAnswer' => ['Answer','ItemList'], |
|
161 | + 'suggestedAnswer' => ['Answer', 'ItemList'], |
|
162 | 162 | 'upvoteCount' => ['Integer'] |
163 | 163 | ]; |
164 | 164 | |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | { |
234 | 234 | $rules = parent::rules(); |
235 | 235 | $rules = array_merge($rules, [ |
236 | - [['acceptedAnswer','answerCount','downvoteCount','suggestedAnswer','upvoteCount'], 'validateJsonSchema'], |
|
236 | + [['acceptedAnswer', 'answerCount', 'downvoteCount', 'suggestedAnswer', 'upvoteCount'], 'validateJsonSchema'], |
|
237 | 237 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
238 | 238 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
239 | 239 | ]); |
@@ -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(); |
@@ -302,26 +302,26 @@ discard block |
||
302 | 302 | */ |
303 | 303 | static protected $_schemaPropertyExpectedTypes = [ |
304 | 304 | 'aggregateRating' => ['AggregateRating'], |
305 | - 'areaServed' => ['AdministrativeArea','GeoShape','Place','Text'], |
|
305 | + 'areaServed' => ['AdministrativeArea', 'GeoShape', 'Place', 'Text'], |
|
306 | 306 | 'audience' => ['Audience'], |
307 | 307 | 'availableChannel' => ['ServiceChannel'], |
308 | 308 | 'award' => ['Text'], |
309 | - 'brand' => ['Brand','Organization'], |
|
310 | - 'broker' => ['Organization','Person'], |
|
311 | - 'category' => ['PhysicalActivityCategory','Text','Thing'], |
|
309 | + 'brand' => ['Brand', 'Organization'], |
|
310 | + 'broker' => ['Organization', 'Person'], |
|
311 | + 'category' => ['PhysicalActivityCategory', 'Text', 'Thing'], |
|
312 | 312 | 'hasOfferCatalog' => ['OfferCatalog'], |
313 | 313 | 'hoursAvailable' => ['OpeningHoursSpecification'], |
314 | - 'isRelatedTo' => ['Product','Service'], |
|
315 | - 'isSimilarTo' => ['Product','Service'], |
|
316 | - 'logo' => ['ImageObject','URL'], |
|
317 | - 'offers' => ['Demand','Offer'], |
|
318 | - 'provider' => ['Organization','Person'], |
|
314 | + 'isRelatedTo' => ['Product', 'Service'], |
|
315 | + 'isSimilarTo' => ['Product', 'Service'], |
|
316 | + 'logo' => ['ImageObject', 'URL'], |
|
317 | + 'offers' => ['Demand', 'Offer'], |
|
318 | + 'provider' => ['Organization', 'Person'], |
|
319 | 319 | 'providerMobility' => ['Text'], |
320 | 320 | 'review' => ['Review'], |
321 | 321 | 'serviceOutput' => ['Thing'], |
322 | 322 | 'serviceType' => ['Text'], |
323 | 323 | 'slogan' => ['Text'], |
324 | - 'termsOfService' => ['Text','URL'] |
|
324 | + 'termsOfService' => ['Text', 'URL'] |
|
325 | 325 | ]; |
326 | 326 | |
327 | 327 | /** |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | { |
412 | 412 | $rules = parent::rules(); |
413 | 413 | $rules = array_merge($rules, [ |
414 | - [['aggregateRating','areaServed','audience','availableChannel','award','brand','broker','category','hasOfferCatalog','hoursAvailable','isRelatedTo','isSimilarTo','logo','offers','provider','providerMobility','review','serviceOutput','serviceType','slogan','termsOfService'], 'validateJsonSchema'], |
|
414 | + [['aggregateRating', 'areaServed', 'audience', 'availableChannel', 'award', 'brand', 'broker', 'category', 'hasOfferCatalog', 'hoursAvailable', 'isRelatedTo', 'isSimilarTo', 'logo', 'offers', 'provider', 'providerMobility', 'review', 'serviceOutput', 'serviceType', 'slogan', 'termsOfService'], 'validateJsonSchema'], |
|
415 | 415 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
416 | 416 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
417 | 417 | ]); |