@@ -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(); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * @var array |
| 133 | 133 | */ |
| 134 | 134 | static protected $_schemaPropertyExpectedTypes = [ |
| 135 | - 'numberOfRooms' => ['Number','QuantitativeValue'], |
|
| 135 | + 'numberOfRooms' => ['Number', 'QuantitativeValue'], |
|
| 136 | 136 | 'occupancy' => ['QuantitativeValue'] |
| 137 | 137 | ]; |
| 138 | 138 | |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | { |
| 205 | 205 | $rules = parent::rules(); |
| 206 | 206 | $rules = array_merge($rules, [ |
| 207 | - [['numberOfRooms','occupancy'], 'validateJsonSchema'], |
|
| 207 | + [['numberOfRooms', 'occupancy'], 'validateJsonSchema'], |
|
| 208 | 208 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 209 | 209 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 210 | 210 | ]); |
@@ -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(); |
@@ -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 | ]); |
@@ -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(); |
@@ -190,15 +190,15 @@ discard block |
||
| 190 | 190 | * @var array |
| 191 | 191 | */ |
| 192 | 192 | static protected $_schemaPropertyExpectedTypes = [ |
| 193 | - 'amount' => ['MonetaryAmount','Number'], |
|
| 193 | + 'amount' => ['MonetaryAmount', 'Number'], |
|
| 194 | 194 | 'currency' => ['Text'], |
| 195 | 195 | 'gracePeriod' => ['Duration'], |
| 196 | 196 | 'loanRepaymentForm' => ['RepaymentSpecification'], |
| 197 | 197 | 'loanTerm' => ['QuantitativeValue'], |
| 198 | - 'loanType' => ['Text','URL'], |
|
| 198 | + 'loanType' => ['Text', 'URL'], |
|
| 199 | 199 | 'recourseLoan' => ['Boolean'], |
| 200 | 200 | 'renegotiableLoan' => ['Boolean'], |
| 201 | - 'requiredCollateral' => ['Text','Thing'] |
|
| 201 | + 'requiredCollateral' => ['Text', 'Thing'] |
|
| 202 | 202 | ]; |
| 203 | 203 | |
| 204 | 204 | /** |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | { |
| 277 | 277 | $rules = parent::rules(); |
| 278 | 278 | $rules = array_merge($rules, [ |
| 279 | - [['amount','currency','gracePeriod','loanRepaymentForm','loanTerm','loanType','recourseLoan','renegotiableLoan','requiredCollateral'], 'validateJsonSchema'], |
|
| 279 | + [['amount', 'currency', 'gracePeriod', 'loanRepaymentForm', 'loanTerm', 'loanType', 'recourseLoan', 'renegotiableLoan', 'requiredCollateral'], 'validateJsonSchema'], |
|
| 280 | 280 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 281 | 281 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 282 | 282 | ]); |
@@ -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(); |
@@ -607,29 +607,29 @@ discard block |
||
| 607 | 607 | * @var array |
| 608 | 608 | */ |
| 609 | 609 | static protected $_schemaPropertyExpectedTypes = [ |
| 610 | - 'actionableFeedbackPolicy' => ['CreativeWork','URL'], |
|
| 611 | - 'address' => ['PostalAddress','Text'], |
|
| 610 | + 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
| 611 | + 'address' => ['PostalAddress', 'Text'], |
|
| 612 | 612 | 'aggregateRating' => ['AggregateRating'], |
| 613 | 613 | 'alumni' => ['Person'], |
| 614 | - 'areaServed' => ['AdministrativeArea','GeoShape','Place','Text'], |
|
| 614 | + 'areaServed' => ['AdministrativeArea', 'GeoShape', 'Place', 'Text'], |
|
| 615 | 615 | 'award' => ['Text'], |
| 616 | - 'brand' => ['Brand','Organization'], |
|
| 616 | + 'brand' => ['Brand', 'Organization'], |
|
| 617 | 617 | 'contactPoint' => ['ContactPoint'], |
| 618 | - 'correctionsPolicy' => ['CreativeWork','URL'], |
|
| 618 | + 'correctionsPolicy' => ['CreativeWork', 'URL'], |
|
| 619 | 619 | 'department' => ['Organization'], |
| 620 | 620 | 'dissolutionDate' => ['Date'], |
| 621 | - 'diversityPolicy' => ['CreativeWork','URL'], |
|
| 622 | - 'diversityStaffingReport' => ['Article','URL'], |
|
| 621 | + 'diversityPolicy' => ['CreativeWork', 'URL'], |
|
| 622 | + 'diversityStaffingReport' => ['Article', 'URL'], |
|
| 623 | 623 | 'duns' => ['Text'], |
| 624 | 624 | 'email' => ['Text'], |
| 625 | 625 | 'employee' => ['Person'], |
| 626 | - 'ethicsPolicy' => ['CreativeWork','URL'], |
|
| 626 | + 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
| 627 | 627 | 'event' => ['Event'], |
| 628 | 628 | 'faxNumber' => ['Text'], |
| 629 | 629 | 'founder' => ['Person'], |
| 630 | 630 | 'foundingDate' => ['Date'], |
| 631 | 631 | 'foundingLocation' => ['Place'], |
| 632 | - 'funder' => ['Organization','Person'], |
|
| 632 | + 'funder' => ['Organization', 'Person'], |
|
| 633 | 633 | 'globalLocationNumber' => ['Text'], |
| 634 | 634 | 'hasCredential' => ['EducationalOccupationalCredential'], |
| 635 | 635 | 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
@@ -637,29 +637,29 @@ discard block |
||
| 637 | 637 | 'hasPOS' => ['Place'], |
| 638 | 638 | 'interactionStatistic' => ['InteractionCounter'], |
| 639 | 639 | 'isicV4' => ['Text'], |
| 640 | - 'knowsAbout' => ['Text','Thing','URL'], |
|
| 641 | - 'knowsLanguage' => ['Language','Text'], |
|
| 640 | + 'knowsAbout' => ['Text', 'Thing', 'URL'], |
|
| 641 | + 'knowsLanguage' => ['Language', 'Text'], |
|
| 642 | 642 | 'legalName' => ['Text'], |
| 643 | 643 | 'leiCode' => ['Text'], |
| 644 | - 'location' => ['Place','PostalAddress','Text','VirtualLocation'], |
|
| 645 | - 'logo' => ['ImageObject','URL'], |
|
| 644 | + 'location' => ['Place', 'PostalAddress', 'Text', 'VirtualLocation'], |
|
| 645 | + 'logo' => ['ImageObject', 'URL'], |
|
| 646 | 646 | 'makesOffer' => ['Offer'], |
| 647 | - 'member' => ['Organization','Person'], |
|
| 648 | - 'memberOf' => ['Organization','ProgramMembership'], |
|
| 647 | + 'member' => ['Organization', 'Person'], |
|
| 648 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
| 649 | 649 | 'naics' => ['Text'], |
| 650 | 650 | 'numberOfEmployees' => ['QuantitativeValue'], |
| 651 | - 'ownershipFundingInfo' => ['AboutPage','CreativeWork','Text','URL'], |
|
| 652 | - 'owns' => ['OwnershipInfo','Product'], |
|
| 651 | + 'ownershipFundingInfo' => ['AboutPage', 'CreativeWork', 'Text', 'URL'], |
|
| 652 | + 'owns' => ['OwnershipInfo', 'Product'], |
|
| 653 | 653 | 'parentOrganization' => ['Organization'], |
| 654 | - 'publishingPrinciples' => ['CreativeWork','URL'], |
|
| 654 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
| 655 | 655 | 'review' => ['Review'], |
| 656 | 656 | 'seeks' => ['Demand'], |
| 657 | 657 | 'slogan' => ['Text'], |
| 658 | - 'sponsor' => ['Organization','Person'], |
|
| 658 | + 'sponsor' => ['Organization', 'Person'], |
|
| 659 | 659 | 'subOrganization' => ['Organization'], |
| 660 | 660 | 'taxID' => ['Text'], |
| 661 | 661 | 'telephone' => ['Text'], |
| 662 | - 'unnamedSourcesPolicy' => ['CreativeWork','URL'], |
|
| 662 | + 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
| 663 | 663 | 'vatID' => ['Text'] |
| 664 | 664 | ]; |
| 665 | 665 | |
@@ -783,7 +783,7 @@ discard block |
||
| 783 | 783 | { |
| 784 | 784 | $rules = parent::rules(); |
| 785 | 785 | $rules = array_merge($rules, [ |
| 786 | - [['actionableFeedbackPolicy','address','aggregateRating','alumni','areaServed','award','brand','contactPoint','correctionsPolicy','department','dissolutionDate','diversityPolicy','diversityStaffingReport','duns','email','employee','ethicsPolicy','event','faxNumber','founder','foundingDate','foundingLocation','funder','globalLocationNumber','hasCredential','hasMerchantReturnPolicy','hasOfferCatalog','hasPOS','interactionStatistic','isicV4','knowsAbout','knowsLanguage','legalName','leiCode','location','logo','makesOffer','member','memberOf','naics','numberOfEmployees','ownershipFundingInfo','owns','parentOrganization','publishingPrinciples','review','seeks','slogan','sponsor','subOrganization','taxID','telephone','unnamedSourcesPolicy','vatID'], 'validateJsonSchema'], |
|
| 786 | + [['actionableFeedbackPolicy', 'address', 'aggregateRating', 'alumni', 'areaServed', 'award', 'brand', 'contactPoint', 'correctionsPolicy', 'department', 'dissolutionDate', 'diversityPolicy', 'diversityStaffingReport', 'duns', 'email', 'employee', 'ethicsPolicy', 'event', 'faxNumber', 'founder', 'foundingDate', 'foundingLocation', 'funder', 'globalLocationNumber', 'hasCredential', 'hasMerchantReturnPolicy', 'hasOfferCatalog', 'hasPOS', 'interactionStatistic', 'isicV4', 'knowsAbout', 'knowsLanguage', 'legalName', 'leiCode', 'location', 'logo', 'makesOffer', 'member', 'memberOf', 'naics', 'numberOfEmployees', 'ownershipFundingInfo', 'owns', 'parentOrganization', 'publishingPrinciples', 'review', 'seeks', 'slogan', 'sponsor', 'subOrganization', 'taxID', 'telephone', 'unnamedSourcesPolicy', 'vatID'], 'validateJsonSchema'], |
|
| 787 | 787 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 788 | 788 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 789 | 789 | ]); |
@@ -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(); |
@@ -610,16 +610,16 @@ discard block |
||
| 610 | 610 | */ |
| 611 | 611 | static protected $_schemaPropertyExpectedTypes = [ |
| 612 | 612 | 'additionalName' => ['Text'], |
| 613 | - 'address' => ['PostalAddress','Text'], |
|
| 613 | + 'address' => ['PostalAddress', 'Text'], |
|
| 614 | 614 | 'affiliation' => ['Organization'], |
| 615 | - 'alumniOf' => ['EducationalOrganization','Organization'], |
|
| 615 | + 'alumniOf' => ['EducationalOrganization', 'Organization'], |
|
| 616 | 616 | 'award' => ['Text'], |
| 617 | 617 | 'birthDate' => ['Date'], |
| 618 | 618 | 'birthPlace' => ['Place'], |
| 619 | - 'brand' => ['Brand','Organization'], |
|
| 619 | + 'brand' => ['Brand', 'Organization'], |
|
| 620 | 620 | 'callSign' => ['Text'], |
| 621 | 621 | 'children' => ['Person'], |
| 622 | - 'colleague' => ['Person','URL'], |
|
| 622 | + 'colleague' => ['Person', 'URL'], |
|
| 623 | 623 | 'contactPoint' => ['ContactPoint'], |
| 624 | 624 | 'deathDate' => ['Date'], |
| 625 | 625 | 'deathPlace' => ['Place'], |
@@ -628,43 +628,43 @@ discard block |
||
| 628 | 628 | 'familyName' => ['Text'], |
| 629 | 629 | 'faxNumber' => ['Text'], |
| 630 | 630 | 'follows' => ['Person'], |
| 631 | - 'funder' => ['Organization','Person'], |
|
| 632 | - 'gender' => ['GenderType','Text'], |
|
| 631 | + 'funder' => ['Organization', 'Person'], |
|
| 632 | + 'gender' => ['GenderType', 'Text'], |
|
| 633 | 633 | 'givenName' => ['Text'], |
| 634 | 634 | 'globalLocationNumber' => ['Text'], |
| 635 | 635 | 'hasCredential' => ['EducationalOccupationalCredential'], |
| 636 | 636 | 'hasOccupation' => ['Occupation'], |
| 637 | 637 | 'hasOfferCatalog' => ['OfferCatalog'], |
| 638 | 638 | 'hasPOS' => ['Place'], |
| 639 | - 'height' => ['Distance','QuantitativeValue'], |
|
| 640 | - 'homeLocation' => ['ContactPoint','Place'], |
|
| 639 | + 'height' => ['Distance', 'QuantitativeValue'], |
|
| 640 | + 'homeLocation' => ['ContactPoint', 'Place'], |
|
| 641 | 641 | 'honorificPrefix' => ['Text'], |
| 642 | 642 | 'honorificSuffix' => ['Text'], |
| 643 | 643 | 'interactionStatistic' => ['InteractionCounter'], |
| 644 | 644 | 'isicV4' => ['Text'], |
| 645 | - 'jobTitle' => ['DefinedTerm','Text'], |
|
| 645 | + 'jobTitle' => ['DefinedTerm', 'Text'], |
|
| 646 | 646 | 'knows' => ['Person'], |
| 647 | - 'knowsAbout' => ['Text','Thing','URL'], |
|
| 648 | - 'knowsLanguage' => ['Language','Text'], |
|
| 647 | + 'knowsAbout' => ['Text', 'Thing', 'URL'], |
|
| 648 | + 'knowsLanguage' => ['Language', 'Text'], |
|
| 649 | 649 | 'makesOffer' => ['Offer'], |
| 650 | - 'memberOf' => ['Organization','ProgramMembership'], |
|
| 650 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
| 651 | 651 | 'naics' => ['Text'], |
| 652 | 652 | 'nationality' => ['Country'], |
| 653 | - 'netWorth' => ['MonetaryAmount','PriceSpecification'], |
|
| 654 | - 'owns' => ['OwnershipInfo','Product'], |
|
| 653 | + 'netWorth' => ['MonetaryAmount', 'PriceSpecification'], |
|
| 654 | + 'owns' => ['OwnershipInfo', 'Product'], |
|
| 655 | 655 | 'parent' => ['Person'], |
| 656 | 656 | 'performerIn' => ['Event'], |
| 657 | - 'publishingPrinciples' => ['CreativeWork','URL'], |
|
| 657 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
| 658 | 658 | 'relatedTo' => ['Person'], |
| 659 | 659 | 'seeks' => ['Demand'], |
| 660 | 660 | 'sibling' => ['Person'], |
| 661 | - 'sponsor' => ['Organization','Person'], |
|
| 661 | + 'sponsor' => ['Organization', 'Person'], |
|
| 662 | 662 | 'spouse' => ['Person'], |
| 663 | 663 | 'taxID' => ['Text'], |
| 664 | 664 | 'telephone' => ['Text'], |
| 665 | 665 | 'vatID' => ['Text'], |
| 666 | 666 | 'weight' => ['QuantitativeValue'], |
| 667 | - 'workLocation' => ['ContactPoint','Place'], |
|
| 667 | + 'workLocation' => ['ContactPoint', 'Place'], |
|
| 668 | 668 | 'worksFor' => ['Organization'] |
| 669 | 669 | ]; |
| 670 | 670 | |
@@ -791,7 +791,7 @@ discard block |
||
| 791 | 791 | { |
| 792 | 792 | $rules = parent::rules(); |
| 793 | 793 | $rules = array_merge($rules, [ |
| 794 | - [['additionalName','address','affiliation','alumniOf','award','birthDate','birthPlace','brand','callSign','children','colleague','contactPoint','deathDate','deathPlace','duns','email','familyName','faxNumber','follows','funder','gender','givenName','globalLocationNumber','hasCredential','hasOccupation','hasOfferCatalog','hasPOS','height','homeLocation','honorificPrefix','honorificSuffix','interactionStatistic','isicV4','jobTitle','knows','knowsAbout','knowsLanguage','makesOffer','memberOf','naics','nationality','netWorth','owns','parent','performerIn','publishingPrinciples','relatedTo','seeks','sibling','sponsor','spouse','taxID','telephone','vatID','weight','workLocation','worksFor'], 'validateJsonSchema'], |
|
| 794 | + [['additionalName', 'address', 'affiliation', 'alumniOf', 'award', 'birthDate', 'birthPlace', 'brand', 'callSign', 'children', 'colleague', 'contactPoint', 'deathDate', 'deathPlace', 'duns', 'email', 'familyName', 'faxNumber', 'follows', 'funder', 'gender', 'givenName', 'globalLocationNumber', 'hasCredential', 'hasOccupation', 'hasOfferCatalog', 'hasPOS', 'height', 'homeLocation', 'honorificPrefix', 'honorificSuffix', 'interactionStatistic', 'isicV4', 'jobTitle', 'knows', 'knowsAbout', 'knowsLanguage', 'makesOffer', 'memberOf', 'naics', 'nationality', 'netWorth', 'owns', 'parent', 'performerIn', 'publishingPrinciples', 'relatedTo', 'seeks', 'sibling', 'sponsor', 'spouse', 'taxID', 'telephone', 'vatID', 'weight', 'workLocation', 'worksFor'], 'validateJsonSchema'], |
|
| 795 | 795 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 796 | 796 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 797 | 797 | ]); |
@@ -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(); |
@@ -222,15 +222,15 @@ discard block |
||
| 222 | 222 | */ |
| 223 | 223 | static protected $_schemaPropertyExpectedTypes = [ |
| 224 | 224 | 'actionStatus' => ['ActionStatusType'], |
| 225 | - 'agent' => ['Organization','Person'], |
|
| 226 | - 'endTime' => ['DateTime','Time'], |
|
| 225 | + 'agent' => ['Organization', 'Person'], |
|
| 226 | + 'endTime' => ['DateTime', 'Time'], |
|
| 227 | 227 | 'error' => ['Thing'], |
| 228 | 228 | 'instrument' => ['Thing'], |
| 229 | - 'location' => ['Place','PostalAddress','Text','VirtualLocation'], |
|
| 229 | + 'location' => ['Place', 'PostalAddress', 'Text', 'VirtualLocation'], |
|
| 230 | 230 | 'object' => ['Thing'], |
| 231 | - 'participant' => ['Organization','Person'], |
|
| 231 | + 'participant' => ['Organization', 'Person'], |
|
| 232 | 232 | 'result' => ['Thing'], |
| 233 | - 'startTime' => ['DateTime','Time'], |
|
| 233 | + 'startTime' => ['DateTime', 'Time'], |
|
| 234 | 234 | 'target' => ['EntryPoint'] |
| 235 | 235 | ]; |
| 236 | 236 | |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | { |
| 312 | 312 | $rules = parent::rules(); |
| 313 | 313 | $rules = array_merge($rules, [ |
| 314 | - [['actionStatus','agent','endTime','error','instrument','location','object','participant','result','startTime','target'], 'validateJsonSchema'], |
|
| 314 | + [['actionStatus', 'agent', 'endTime', 'error', 'instrument', 'location', 'object', 'participant', 'result', 'startTime', 'target'], 'validateJsonSchema'], |
|
| 315 | 315 | [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
| 316 | 316 | [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
| 317 | 317 | ]); |