@@ -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(); |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | { |
| 214 | 214 | $rules = parent::rules(); |
| 215 | 215 | $rules = array_merge($rules, [ |
| 216 | - [['coverageEndTime','coverageStartTime','liveBlogUpdate'], 'validateJsonSchema'], |
|
| 216 | + [['coverageEndTime', 'coverageStartTime', 'liveBlogUpdate'], 'validateJsonSchema'], |
|
| 217 | 217 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 218 | 218 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 219 | 219 | ]); |
@@ -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(); |
@@ -456,36 +456,36 @@ discard block |
||
| 456 | 456 | 'about' => ['Thing'], |
| 457 | 457 | 'actor' => ['Person'], |
| 458 | 458 | 'aggregateRating' => ['AggregateRating'], |
| 459 | - 'attendee' => ['Organization','Person'], |
|
| 459 | + 'attendee' => ['Organization', 'Person'], |
|
| 460 | 460 | 'audience' => ['Audience'], |
| 461 | - 'composer' => ['Organization','Person'], |
|
| 462 | - 'contributor' => ['Organization','Person'], |
|
| 461 | + 'composer' => ['Organization', 'Person'], |
|
| 462 | + 'contributor' => ['Organization', 'Person'], |
|
| 463 | 463 | 'director' => ['Person'], |
| 464 | - 'doorTime' => ['DateTime','Time'], |
|
| 464 | + 'doorTime' => ['DateTime', 'Time'], |
|
| 465 | 465 | 'duration' => ['Duration'], |
| 466 | - 'endDate' => ['Date','DateTime'], |
|
| 466 | + 'endDate' => ['Date', 'DateTime'], |
|
| 467 | 467 | 'eventAttendanceMode' => ['EventAttendanceModeEnumeration'], |
| 468 | 468 | 'eventSchedule' => ['Schedule'], |
| 469 | 469 | 'eventStatus' => ['EventStatusType'], |
| 470 | - 'funder' => ['Organization','Person'], |
|
| 471 | - 'inLanguage' => ['Language','Text'], |
|
| 470 | + 'funder' => ['Organization', 'Person'], |
|
| 471 | + 'inLanguage' => ['Language', 'Text'], |
|
| 472 | 472 | 'isAccessibleForFree' => ['Boolean'], |
| 473 | - 'location' => ['Place','PostalAddress','Text','VirtualLocation'], |
|
| 473 | + 'location' => ['Place', 'PostalAddress', 'Text', 'VirtualLocation'], |
|
| 474 | 474 | 'maximumAttendeeCapacity' => ['Integer'], |
| 475 | 475 | 'maximumPhysicalAttendeeCapacity' => ['Integer'], |
| 476 | 476 | 'maximumVirtualAttendeeCapacity' => ['Integer'], |
| 477 | - 'offers' => ['Demand','Offer'], |
|
| 478 | - 'organizer' => ['Organization','Person'], |
|
| 479 | - 'performer' => ['Organization','Person'], |
|
| 477 | + 'offers' => ['Demand', 'Offer'], |
|
| 478 | + 'organizer' => ['Organization', 'Person'], |
|
| 479 | + 'performer' => ['Organization', 'Person'], |
|
| 480 | 480 | 'previousStartDate' => ['Date'], |
| 481 | 481 | 'recordedIn' => ['CreativeWork'], |
| 482 | 482 | 'remainingAttendeeCapacity' => ['Integer'], |
| 483 | 483 | 'review' => ['Review'], |
| 484 | - 'sponsor' => ['Organization','Person'], |
|
| 485 | - 'startDate' => ['Date','DateTime'], |
|
| 484 | + 'sponsor' => ['Organization', 'Person'], |
|
| 485 | + 'startDate' => ['Date', 'DateTime'], |
|
| 486 | 486 | 'subEvent' => ['Event'], |
| 487 | 487 | 'superEvent' => ['Event'], |
| 488 | - 'translator' => ['Organization','Person'], |
|
| 488 | + 'translator' => ['Organization', 'Person'], |
|
| 489 | 489 | 'typicalAgeRange' => ['Text'], |
| 490 | 490 | 'workFeatured' => ['CreativeWork'], |
| 491 | 491 | 'workPerformed' => ['CreativeWork'] |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | { |
| 594 | 594 | $rules = parent::rules(); |
| 595 | 595 | $rules = array_merge($rules, [ |
| 596 | - [['about','actor','aggregateRating','attendee','audience','composer','contributor','director','doorTime','duration','endDate','eventAttendanceMode','eventSchedule','eventStatus','funder','inLanguage','isAccessibleForFree','location','maximumAttendeeCapacity','maximumPhysicalAttendeeCapacity','maximumVirtualAttendeeCapacity','offers','organizer','performer','previousStartDate','recordedIn','remainingAttendeeCapacity','review','sponsor','startDate','subEvent','superEvent','translator','typicalAgeRange','workFeatured','workPerformed'], 'validateJsonSchema'], |
|
| 596 | + [['about', 'actor', 'aggregateRating', 'attendee', 'audience', 'composer', 'contributor', 'director', 'doorTime', 'duration', 'endDate', 'eventAttendanceMode', 'eventSchedule', 'eventStatus', 'funder', 'inLanguage', 'isAccessibleForFree', 'location', 'maximumAttendeeCapacity', 'maximumPhysicalAttendeeCapacity', 'maximumVirtualAttendeeCapacity', 'offers', 'organizer', 'performer', 'previousStartDate', 'recordedIn', 'remainingAttendeeCapacity', 'review', 'sponsor', 'startDate', 'subEvent', 'superEvent', 'translator', 'typicalAgeRange', 'workFeatured', 'workPerformed'], 'validateJsonSchema'], |
|
| 597 | 597 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 598 | 598 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 599 | 599 | ]); |
@@ -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(); |
@@ -203,14 +203,14 @@ discard block |
||
| 203 | 203 | * @var array |
| 204 | 204 | */ |
| 205 | 205 | static protected $_schemaPropertyExpectedTypes = [ |
| 206 | - 'breadcrumb' => ['BreadcrumbList','Text'], |
|
| 206 | + 'breadcrumb' => ['BreadcrumbList', 'Text'], |
|
| 207 | 207 | 'lastReviewed' => ['Date'], |
| 208 | 208 | 'mainContentOfPage' => ['WebPageElement'], |
| 209 | 209 | 'primaryImageOfPage' => ['ImageObject'], |
| 210 | 210 | 'relatedLink' => ['URL'], |
| 211 | - 'reviewedBy' => ['Organization','Person'], |
|
| 211 | + 'reviewedBy' => ['Organization', 'Person'], |
|
| 212 | 212 | 'significantLink' => ['URL'], |
| 213 | - 'speakable' => ['SpeakableSpecification','URL'], |
|
| 213 | + 'speakable' => ['SpeakableSpecification', 'URL'], |
|
| 214 | 214 | 'specialty' => ['Specialty'] |
| 215 | 215 | ]; |
| 216 | 216 | |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | { |
| 290 | 290 | $rules = parent::rules(); |
| 291 | 291 | $rules = array_merge($rules, [ |
| 292 | - [['breadcrumb','lastReviewed','mainContentOfPage','primaryImageOfPage','relatedLink','reviewedBy','significantLink','speakable','specialty'], 'validateJsonSchema'], |
|
| 292 | + [['breadcrumb', 'lastReviewed', 'mainContentOfPage', 'primaryImageOfPage', 'relatedLink', 'reviewedBy', 'significantLink', 'speakable', 'specialty'], 'validateJsonSchema'], |
|
| 293 | 293 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 294 | 294 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 295 | 295 | ]); |
@@ -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(); |
@@ -456,36 +456,36 @@ discard block |
||
| 456 | 456 | 'about' => ['Thing'], |
| 457 | 457 | 'actor' => ['Person'], |
| 458 | 458 | 'aggregateRating' => ['AggregateRating'], |
| 459 | - 'attendee' => ['Organization','Person'], |
|
| 459 | + 'attendee' => ['Organization', 'Person'], |
|
| 460 | 460 | 'audience' => ['Audience'], |
| 461 | - 'composer' => ['Organization','Person'], |
|
| 462 | - 'contributor' => ['Organization','Person'], |
|
| 461 | + 'composer' => ['Organization', 'Person'], |
|
| 462 | + 'contributor' => ['Organization', 'Person'], |
|
| 463 | 463 | 'director' => ['Person'], |
| 464 | - 'doorTime' => ['DateTime','Time'], |
|
| 464 | + 'doorTime' => ['DateTime', 'Time'], |
|
| 465 | 465 | 'duration' => ['Duration'], |
| 466 | - 'endDate' => ['Date','DateTime'], |
|
| 466 | + 'endDate' => ['Date', 'DateTime'], |
|
| 467 | 467 | 'eventAttendanceMode' => ['EventAttendanceModeEnumeration'], |
| 468 | 468 | 'eventSchedule' => ['Schedule'], |
| 469 | 469 | 'eventStatus' => ['EventStatusType'], |
| 470 | - 'funder' => ['Organization','Person'], |
|
| 471 | - 'inLanguage' => ['Language','Text'], |
|
| 470 | + 'funder' => ['Organization', 'Person'], |
|
| 471 | + 'inLanguage' => ['Language', 'Text'], |
|
| 472 | 472 | 'isAccessibleForFree' => ['Boolean'], |
| 473 | - 'location' => ['Place','PostalAddress','Text','VirtualLocation'], |
|
| 473 | + 'location' => ['Place', 'PostalAddress', 'Text', 'VirtualLocation'], |
|
| 474 | 474 | 'maximumAttendeeCapacity' => ['Integer'], |
| 475 | 475 | 'maximumPhysicalAttendeeCapacity' => ['Integer'], |
| 476 | 476 | 'maximumVirtualAttendeeCapacity' => ['Integer'], |
| 477 | - 'offers' => ['Demand','Offer'], |
|
| 478 | - 'organizer' => ['Organization','Person'], |
|
| 479 | - 'performer' => ['Organization','Person'], |
|
| 477 | + 'offers' => ['Demand', 'Offer'], |
|
| 478 | + 'organizer' => ['Organization', 'Person'], |
|
| 479 | + 'performer' => ['Organization', 'Person'], |
|
| 480 | 480 | 'previousStartDate' => ['Date'], |
| 481 | 481 | 'recordedIn' => ['CreativeWork'], |
| 482 | 482 | 'remainingAttendeeCapacity' => ['Integer'], |
| 483 | 483 | 'review' => ['Review'], |
| 484 | - 'sponsor' => ['Organization','Person'], |
|
| 485 | - 'startDate' => ['Date','DateTime'], |
|
| 484 | + 'sponsor' => ['Organization', 'Person'], |
|
| 485 | + 'startDate' => ['Date', 'DateTime'], |
|
| 486 | 486 | 'subEvent' => ['Event'], |
| 487 | 487 | 'superEvent' => ['Event'], |
| 488 | - 'translator' => ['Organization','Person'], |
|
| 488 | + 'translator' => ['Organization', 'Person'], |
|
| 489 | 489 | 'typicalAgeRange' => ['Text'], |
| 490 | 490 | 'workFeatured' => ['CreativeWork'], |
| 491 | 491 | 'workPerformed' => ['CreativeWork'] |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | { |
| 594 | 594 | $rules = parent::rules(); |
| 595 | 595 | $rules = array_merge($rules, [ |
| 596 | - [['about','actor','aggregateRating','attendee','audience','composer','contributor','director','doorTime','duration','endDate','eventAttendanceMode','eventSchedule','eventStatus','funder','inLanguage','isAccessibleForFree','location','maximumAttendeeCapacity','maximumPhysicalAttendeeCapacity','maximumVirtualAttendeeCapacity','offers','organizer','performer','previousStartDate','recordedIn','remainingAttendeeCapacity','review','sponsor','startDate','subEvent','superEvent','translator','typicalAgeRange','workFeatured','workPerformed'], 'validateJsonSchema'], |
|
| 596 | + [['about', 'actor', 'aggregateRating', 'attendee', 'audience', 'composer', 'contributor', 'director', 'doorTime', 'duration', 'endDate', 'eventAttendanceMode', 'eventSchedule', 'eventStatus', 'funder', 'inLanguage', 'isAccessibleForFree', 'location', 'maximumAttendeeCapacity', 'maximumPhysicalAttendeeCapacity', 'maximumVirtualAttendeeCapacity', 'offers', 'organizer', 'performer', 'previousStartDate', 'recordedIn', 'remainingAttendeeCapacity', 'review', 'sponsor', 'startDate', 'subEvent', 'superEvent', 'translator', 'typicalAgeRange', 'workFeatured', 'workPerformed'], 'validateJsonSchema'], |
|
| 597 | 597 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 598 | 598 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 599 | 599 | ]); |
@@ -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(); |
@@ -181,8 +181,8 @@ discard block |
||
| 181 | 181 | static protected $_schemaPropertyExpectedTypes = [ |
| 182 | 182 | 'actor' => ['Person'], |
| 183 | 183 | 'director' => ['Person'], |
| 184 | - 'episodeNumber' => ['Integer','Text'], |
|
| 185 | - 'musicBy' => ['MusicGroup','Person'], |
|
| 184 | + 'episodeNumber' => ['Integer', 'Text'], |
|
| 185 | + 'musicBy' => ['MusicGroup', 'Person'], |
|
| 186 | 186 | 'partOfSeason' => ['CreativeWorkSeason'], |
| 187 | 187 | 'partOfSeries' => ['CreativeWorkSeries'], |
| 188 | 188 | 'productionCompany' => ['Organization'], |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | { |
| 264 | 264 | $rules = parent::rules(); |
| 265 | 265 | $rules = array_merge($rules, [ |
| 266 | - [['actor','director','episodeNumber','musicBy','partOfSeason','partOfSeries','productionCompany','trailer'], 'validateJsonSchema'], |
|
| 266 | + [['actor', 'director', 'episodeNumber', 'musicBy', 'partOfSeason', 'partOfSeries', 'productionCompany', 'trailer'], 'validateJsonSchema'], |
|
| 267 | 267 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 268 | 268 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 269 | 269 | ]); |
@@ -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(); |
@@ -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(); |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * @var array |
| 159 | 159 | */ |
| 160 | 160 | static protected $_schemaPropertyExpectedTypes = [ |
| 161 | - 'byArtist' => ['MusicGroup','Person'], |
|
| 161 | + 'byArtist' => ['MusicGroup', 'Person'], |
|
| 162 | 162 | 'duration' => ['Duration'], |
| 163 | 163 | 'inAlbum' => ['MusicAlbum'], |
| 164 | 164 | 'inPlaylist' => ['MusicPlaylist'], |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | { |
| 239 | 239 | $rules = parent::rules(); |
| 240 | 240 | $rules = array_merge($rules, [ |
| 241 | - [['byArtist','duration','inAlbum','inPlaylist','isrcCode','recordingOf'], 'validateJsonSchema'], |
|
| 241 | + [['byArtist', 'duration', 'inAlbum', 'inPlaylist', 'isrcCode', 'recordingOf'], 'validateJsonSchema'], |
|
| 242 | 242 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 243 | 243 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 244 | 244 | ]); |
@@ -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(); |
@@ -191,11 +191,11 @@ discard block |
||
| 191 | 191 | static protected $_schemaPropertyExpectedTypes = [ |
| 192 | 192 | 'amenityFeature' => ['LocationFeatureSpecification'], |
| 193 | 193 | 'audience' => ['Audience'], |
| 194 | - 'availableLanguage' => ['Language','Text'], |
|
| 195 | - 'checkinTime' => ['DateTime','Time'], |
|
| 196 | - 'checkoutTime' => ['DateTime','Time'], |
|
| 197 | - 'numberOfRooms' => ['Number','QuantitativeValue'], |
|
| 198 | - 'petsAllowed' => ['Boolean','Text'], |
|
| 194 | + 'availableLanguage' => ['Language', 'Text'], |
|
| 195 | + 'checkinTime' => ['DateTime', 'Time'], |
|
| 196 | + 'checkoutTime' => ['DateTime', 'Time'], |
|
| 197 | + 'numberOfRooms' => ['Number', 'QuantitativeValue'], |
|
| 198 | + 'petsAllowed' => ['Boolean', 'Text'], |
|
| 199 | 199 | 'starRating' => ['Rating'] |
| 200 | 200 | ]; |
| 201 | 201 | |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | { |
| 274 | 274 | $rules = parent::rules(); |
| 275 | 275 | $rules = array_merge($rules, [ |
| 276 | - [['amenityFeature','audience','availableLanguage','checkinTime','checkoutTime','numberOfRooms','petsAllowed','starRating'], 'validateJsonSchema'], |
|
| 276 | + [['amenityFeature', 'audience', 'availableLanguage', 'checkinTime', 'checkoutTime', 'numberOfRooms', 'petsAllowed', 'starRating'], 'validateJsonSchema'], |
|
| 277 | 277 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 278 | 278 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 279 | 279 | ]); |