@@ -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(); |
@@ -161,12 +161,12 @@ discard block |
||
| 161 | 161 | * @var array |
| 162 | 162 | */ |
| 163 | 163 | static protected $_schemaPropertyExpectedTypes = [ |
| 164 | - 'checkinTime' => ['DateTime','Time'], |
|
| 165 | - 'checkoutTime' => ['DateTime','Time'], |
|
| 164 | + 'checkinTime' => ['DateTime', 'Time'], |
|
| 165 | + 'checkoutTime' => ['DateTime', 'Time'], |
|
| 166 | 166 | 'lodgingUnitDescription' => ['Text'], |
| 167 | - 'lodgingUnitType' => ['QualitativeValue','Text'], |
|
| 168 | - 'numAdults' => ['Integer','QuantitativeValue'], |
|
| 169 | - 'numChildren' => ['Integer','QuantitativeValue'] |
|
| 167 | + 'lodgingUnitType' => ['QualitativeValue', 'Text'], |
|
| 168 | + 'numAdults' => ['Integer', 'QuantitativeValue'], |
|
| 169 | + 'numChildren' => ['Integer', 'QuantitativeValue'] |
|
| 170 | 170 | ]; |
| 171 | 171 | |
| 172 | 172 | /** |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | { |
| 242 | 242 | $rules = parent::rules(); |
| 243 | 243 | $rules = array_merge($rules, [ |
| 244 | - [['checkinTime','checkoutTime','lodgingUnitDescription','lodgingUnitType','numAdults','numChildren'], 'validateJsonSchema'], |
|
| 244 | + [['checkinTime', 'checkoutTime', 'lodgingUnitDescription', 'lodgingUnitType', 'numAdults', 'numChildren'], 'validateJsonSchema'], |
|
| 245 | 245 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 246 | 246 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 247 | 247 | ]); |
@@ -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(); |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | { |
| 206 | 206 | $rules = parent::rules(); |
| 207 | 207 | $rules = array_merge($rules, [ |
| 208 | - [['audience','event'], 'validateJsonSchema'], |
|
| 208 | + [['audience', 'event'], 'validateJsonSchema'], |
|
| 209 | 209 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 210 | 210 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 211 | 211 | ]); |
@@ -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(); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | 'albumProductionType' => ['MusicAlbumProductionType'], |
| 146 | 146 | 'albumRelease' => ['MusicRelease'], |
| 147 | 147 | 'albumReleaseType' => ['MusicAlbumReleaseType'], |
| 148 | - 'byArtist' => ['MusicGroup','Person'] |
|
| 148 | + 'byArtist' => ['MusicGroup', 'Person'] |
|
| 149 | 149 | ]; |
| 150 | 150 | |
| 151 | 151 | /** |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | { |
| 219 | 219 | $rules = parent::rules(); |
| 220 | 220 | $rules = array_merge($rules, [ |
| 221 | - [['albumProductionType','albumRelease','albumReleaseType','byArtist'], 'validateJsonSchema'], |
|
| 221 | + [['albumProductionType', 'albumRelease', 'albumReleaseType', 'byArtist'], 'validateJsonSchema'], |
|
| 222 | 222 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 223 | 223 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 224 | 224 | ]); |
@@ -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(); |
@@ -142,10 +142,10 @@ discard block |
||
| 142 | 142 | * @var array |
| 143 | 143 | */ |
| 144 | 144 | static protected $_schemaPropertyExpectedTypes = [ |
| 145 | - 'acquiredFrom' => ['Organization','Person'], |
|
| 145 | + 'acquiredFrom' => ['Organization', 'Person'], |
|
| 146 | 146 | 'ownedFrom' => ['DateTime'], |
| 147 | 147 | 'ownedThrough' => ['DateTime'], |
| 148 | - 'typeOfGood' => ['Product','Service'] |
|
| 148 | + 'typeOfGood' => ['Product', 'Service'] |
|
| 149 | 149 | ]; |
| 150 | 150 | |
| 151 | 151 | /** |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | { |
| 219 | 219 | $rules = parent::rules(); |
| 220 | 220 | $rules = array_merge($rules, [ |
| 221 | - [['acquiredFrom','ownedFrom','ownedThrough','typeOfGood'], 'validateJsonSchema'], |
|
| 221 | + [['acquiredFrom', 'ownedFrom', 'ownedThrough', 'typeOfGood'], 'validateJsonSchema'], |
|
| 222 | 222 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 223 | 223 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 224 | 224 | ]); |
@@ -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(); |
@@ -182,14 +182,14 @@ discard block |
||
| 182 | 182 | * @var array |
| 183 | 183 | */ |
| 184 | 184 | static protected $_schemaPropertyExpectedTypes = [ |
| 185 | - 'estimatedCost' => ['MonetaryAmount','Text'], |
|
| 185 | + 'estimatedCost' => ['MonetaryAmount', 'Text'], |
|
| 186 | 186 | 'performTime' => ['Duration'], |
| 187 | 187 | 'prepTime' => ['Duration'], |
| 188 | - 'step' => ['CreativeWork','HowToSection','HowToStep','Text'], |
|
| 189 | - 'supply' => ['HowToSupply','Text'], |
|
| 190 | - 'tool' => ['HowToTool','Text'], |
|
| 188 | + 'step' => ['CreativeWork', 'HowToSection', 'HowToStep', 'Text'], |
|
| 189 | + 'supply' => ['HowToSupply', 'Text'], |
|
| 190 | + 'tool' => ['HowToTool', 'Text'], |
|
| 191 | 191 | 'totalTime' => ['Duration'], |
| 192 | - 'yield' => ['QuantitativeValue','Text'] |
|
| 192 | + 'yield' => ['QuantitativeValue', 'Text'] |
|
| 193 | 193 | ]; |
| 194 | 194 | |
| 195 | 195 | /** |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | { |
| 267 | 267 | $rules = parent::rules(); |
| 268 | 268 | $rules = array_merge($rules, [ |
| 269 | - [['estimatedCost','performTime','prepTime','step','supply','tool','totalTime','yield'], 'validateJsonSchema'], |
|
| 269 | + [['estimatedCost', 'performTime', 'prepTime', 'step', 'supply', 'tool', 'totalTime', 'yield'], 'validateJsonSchema'], |
|
| 270 | 270 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 271 | 271 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 272 | 272 | ]); |
@@ -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(); |
@@ -147,8 +147,8 @@ discard block |
||
| 147 | 147 | * @var array |
| 148 | 148 | */ |
| 149 | 149 | static protected $_schemaPropertyExpectedTypes = [ |
| 150 | - 'acceptsReservations' => ['Boolean','Text','URL'], |
|
| 151 | - 'hasMenu' => ['Menu','Text','URL'], |
|
| 150 | + 'acceptsReservations' => ['Boolean', 'Text', 'URL'], |
|
| 151 | + 'hasMenu' => ['Menu', 'Text', 'URL'], |
|
| 152 | 152 | 'servesCuisine' => ['Text'], |
| 153 | 153 | 'starRating' => ['Rating'] |
| 154 | 154 | ]; |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | { |
| 224 | 224 | $rules = parent::rules(); |
| 225 | 225 | $rules = array_merge($rules, [ |
| 226 | - [['acceptsReservations','hasMenu','servesCuisine','starRating'], 'validateJsonSchema'], |
|
| 226 | + [['acceptsReservations', 'hasMenu', 'servesCuisine', 'starRating'], 'validateJsonSchema'], |
|
| 227 | 227 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 228 | 228 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 229 | 229 | ]); |