@@ -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 | // ========================================================================= |
@@ -139,9 +139,9 @@ discard block |
||
| 139 | 139 | * @var array |
| 140 | 140 | */ |
| 141 | 141 | static protected $_schemaPropertyExpectedTypes = [ |
| 142 | - 'annualPercentageRate' => ['Number','QuantitativeValue'], |
|
| 143 | - 'feesAndCommissionsSpecification' => ['Text','URL'], |
|
| 144 | - 'interestRate' => ['Number','QuantitativeValue'] |
|
| 142 | + 'annualPercentageRate' => [ 'Number', 'QuantitativeValue' ], |
|
| 143 | + 'feesAndCommissionsSpecification' => [ 'Text', 'URL' ], |
|
| 144 | + 'interestRate' => [ 'Number', 'QuantitativeValue' ] |
|
| 145 | 145 | ]; |
| 146 | 146 | |
| 147 | 147 | /** |
@@ -213,9 +213,9 @@ discard block |
||
| 213 | 213 | { |
| 214 | 214 | $rules = parent::rules(); |
| 215 | 215 | $rules = array_merge($rules, [ |
| 216 | - [['annualPercentageRate','feesAndCommissionsSpecification','interestRate'], 'validateJsonSchema'], |
|
| 217 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
| 218 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
| 216 | + [ [ 'annualPercentageRate', 'feesAndCommissionsSpecification', 'interestRate' ], 'validateJsonSchema' ], |
|
| 217 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
| 218 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
| 219 | 219 | ]); |
| 220 | 220 | |
| 221 | 221 | 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 | // ========================================================================= |
@@ -133,9 +133,9 @@ discard block |
||
| 133 | 133 | * @var array |
| 134 | 134 | */ |
| 135 | 135 | static protected $_schemaPropertyExpectedTypes = [ |
| 136 | - 'availableService' => ['MedicalProcedure','MedicalTest','MedicalTherapy'], |
|
| 137 | - 'hospitalAffiliation' => ['Hospital'], |
|
| 138 | - 'medicalSpecialty' => ['MedicalSpecialty'] |
|
| 136 | + 'availableService' => [ 'MedicalProcedure', 'MedicalTest', 'MedicalTherapy' ], |
|
| 137 | + 'hospitalAffiliation' => [ 'Hospital' ], |
|
| 138 | + 'medicalSpecialty' => [ 'MedicalSpecialty' ] |
|
| 139 | 139 | ]; |
| 140 | 140 | |
| 141 | 141 | /** |
@@ -207,9 +207,9 @@ discard block |
||
| 207 | 207 | { |
| 208 | 208 | $rules = parent::rules(); |
| 209 | 209 | $rules = array_merge($rules, [ |
| 210 | - [['availableService','hospitalAffiliation','medicalSpecialty'], 'validateJsonSchema'], |
|
| 211 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
| 212 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
| 210 | + [ [ 'availableService', 'hospitalAffiliation', 'medicalSpecialty' ], 'validateJsonSchema' ], |
|
| 211 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
| 212 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
| 213 | 213 | ]); |
| 214 | 214 | |
| 215 | 215 | 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 | // ========================================================================= |
@@ -161,12 +161,12 @@ discard block |
||
| 161 | 161 | * @var array |
| 162 | 162 | */ |
| 163 | 163 | static protected $_schemaPropertyExpectedTypes = [ |
| 164 | - 'actionApplication' => ['SoftwareApplication'], |
|
| 165 | - 'actionPlatform' => ['Text','URL'], |
|
| 166 | - 'contentType' => ['Text'], |
|
| 167 | - 'encodingType' => ['Text'], |
|
| 168 | - 'httpMethod' => ['Text'], |
|
| 169 | - 'urlTemplate' => ['Text'] |
|
| 164 | + 'actionApplication' => [ 'SoftwareApplication' ], |
|
| 165 | + 'actionPlatform' => [ 'Text', 'URL' ], |
|
| 166 | + 'contentType' => [ 'Text' ], |
|
| 167 | + 'encodingType' => [ 'Text' ], |
|
| 168 | + 'httpMethod' => [ 'Text' ], |
|
| 169 | + 'urlTemplate' => [ 'Text' ] |
|
| 170 | 170 | ]; |
| 171 | 171 | |
| 172 | 172 | /** |
@@ -241,9 +241,9 @@ discard block |
||
| 241 | 241 | { |
| 242 | 242 | $rules = parent::rules(); |
| 243 | 243 | $rules = array_merge($rules, [ |
| 244 | - [['actionApplication','actionPlatform','contentType','encodingType','httpMethod','urlTemplate'], 'validateJsonSchema'], |
|
| 245 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
| 246 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
| 244 | + [ [ 'actionApplication', 'actionPlatform', 'contentType', 'encodingType', 'httpMethod', 'urlTemplate' ], 'validateJsonSchema' ], |
|
| 245 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
| 246 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
| 247 | 247 | ]); |
| 248 | 248 | |
| 249 | 249 | 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 | // ========================================================================= |
@@ -170,13 +170,13 @@ discard block |
||
| 170 | 170 | * @var array |
| 171 | 171 | */ |
| 172 | 172 | static protected $_schemaPropertyExpectedTypes = [ |
| 173 | - 'actor' => ['Person'], |
|
| 174 | - 'clipNumber' => ['Integer','Text'], |
|
| 175 | - 'director' => ['Person'], |
|
| 176 | - 'musicBy' => ['MusicGroup','Person'], |
|
| 177 | - 'partOfEpisode' => ['Episode'], |
|
| 178 | - 'partOfSeason' => ['CreativeWorkSeason'], |
|
| 179 | - 'partOfSeries' => ['CreativeWorkSeries'] |
|
| 173 | + 'actor' => [ 'Person' ], |
|
| 174 | + 'clipNumber' => [ 'Integer', 'Text' ], |
|
| 175 | + 'director' => [ 'Person' ], |
|
| 176 | + 'musicBy' => [ 'MusicGroup', 'Person' ], |
|
| 177 | + 'partOfEpisode' => [ 'Episode' ], |
|
| 178 | + 'partOfSeason' => [ 'CreativeWorkSeason' ], |
|
| 179 | + 'partOfSeries' => [ 'CreativeWorkSeries' ] |
|
| 180 | 180 | ]; |
| 181 | 181 | |
| 182 | 182 | /** |
@@ -252,9 +252,9 @@ discard block |
||
| 252 | 252 | { |
| 253 | 253 | $rules = parent::rules(); |
| 254 | 254 | $rules = array_merge($rules, [ |
| 255 | - [['actor','clipNumber','director','musicBy','partOfEpisode','partOfSeason','partOfSeries'], 'validateJsonSchema'], |
|
| 256 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
| 257 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
| 255 | + [ [ 'actor', 'clipNumber', 'director', 'musicBy', 'partOfEpisode', 'partOfSeason', 'partOfSeries' ], 'validateJsonSchema' ], |
|
| 256 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
| 257 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
| 258 | 258 | ]); |
| 259 | 259 | |
| 260 | 260 | 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 | // ========================================================================= |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * @var array |
| 121 | 121 | */ |
| 122 | 122 | static protected $_schemaPropertyExpectedTypes = [ |
| 123 | - 'event' => ['Event'] |
|
| 123 | + 'event' => [ 'Event' ] |
|
| 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 | - [['event'], '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 | + [ [ 'event' ], '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(); |
@@ -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 | // ========================================================================= |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * @var array |
| 121 | 121 | */ |
| 122 | 122 | static protected $_schemaPropertyExpectedTypes = [ |
| 123 | - 'resultComment' => ['Comment'] |
|
| 123 | + 'resultComment' => [ 'Comment' ] |
|
| 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 | - [['resultComment'], '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 | + [ [ 'resultComment' ], '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 | // ========================================================================= |
@@ -202,17 +202,17 @@ discard block |
||
| 202 | 202 | * @var array |
| 203 | 203 | */ |
| 204 | 204 | static protected $_schemaPropertyExpectedTypes = [ |
| 205 | - 'deliveryAddress' => ['PostalAddress'], |
|
| 206 | - 'deliveryStatus' => ['DeliveryEvent'], |
|
| 207 | - 'expectedArrivalFrom' => ['DateTime'], |
|
| 208 | - 'expectedArrivalUntil' => ['DateTime'], |
|
| 209 | - 'hasDeliveryMethod' => ['DeliveryMethod'], |
|
| 210 | - 'itemShipped' => ['Product'], |
|
| 211 | - 'originAddress' => ['PostalAddress'], |
|
| 212 | - 'partOfOrder' => ['Order'], |
|
| 213 | - 'provider' => ['Organization','Person'], |
|
| 214 | - 'trackingNumber' => ['Text'], |
|
| 215 | - 'trackingUrl' => ['URL'] |
|
| 205 | + 'deliveryAddress' => [ 'PostalAddress' ], |
|
| 206 | + 'deliveryStatus' => [ 'DeliveryEvent' ], |
|
| 207 | + 'expectedArrivalFrom' => [ 'DateTime' ], |
|
| 208 | + 'expectedArrivalUntil' => [ 'DateTime' ], |
|
| 209 | + 'hasDeliveryMethod' => [ 'DeliveryMethod' ], |
|
| 210 | + 'itemShipped' => [ 'Product' ], |
|
| 211 | + 'originAddress' => [ 'PostalAddress' ], |
|
| 212 | + 'partOfOrder' => [ 'Order' ], |
|
| 213 | + 'provider' => [ 'Organization', 'Person' ], |
|
| 214 | + 'trackingNumber' => [ 'Text' ], |
|
| 215 | + 'trackingUrl' => [ 'URL' ] |
|
| 216 | 216 | ]; |
| 217 | 217 | |
| 218 | 218 | /** |
@@ -292,9 +292,9 @@ discard block |
||
| 292 | 292 | { |
| 293 | 293 | $rules = parent::rules(); |
| 294 | 294 | $rules = array_merge($rules, [ |
| 295 | - [['deliveryAddress','deliveryStatus','expectedArrivalFrom','expectedArrivalUntil','hasDeliveryMethod','itemShipped','originAddress','partOfOrder','provider','trackingNumber','trackingUrl'], 'validateJsonSchema'], |
|
| 296 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
| 297 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
| 295 | + [ [ 'deliveryAddress', 'deliveryStatus', 'expectedArrivalFrom', 'expectedArrivalUntil', 'hasDeliveryMethod', 'itemShipped', 'originAddress', 'partOfOrder', 'provider', 'trackingNumber', 'trackingUrl' ], 'validateJsonSchema' ], |
|
| 296 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
| 297 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
| 298 | 298 | ]); |
| 299 | 299 | |
| 300 | 300 | 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 | // ========================================================================= |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * @var array |
| 121 | 121 | */ |
| 122 | 122 | static protected $_schemaPropertyExpectedTypes = [ |
| 123 | - 'buyer' => ['Person'] |
|
| 123 | + 'buyer' => [ 'Person' ] |
|
| 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 | - [['buyer'], '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 | + [ [ 'buyer' ], '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 | // ========================================================================= |
@@ -288,26 +288,26 @@ discard block |
||
| 288 | 288 | * @var array |
| 289 | 289 | */ |
| 290 | 290 | static protected $_schemaPropertyExpectedTypes = [ |
| 291 | - 'aggregateRating' => ['AggregateRating'], |
|
| 292 | - 'areaServed' => ['AdministrativeArea','GeoShape','Place','Text'], |
|
| 293 | - 'audience' => ['Audience'], |
|
| 294 | - 'availableChannel' => ['ServiceChannel'], |
|
| 295 | - 'award' => ['Text'], |
|
| 296 | - 'brand' => ['Brand','Organization'], |
|
| 297 | - 'broker' => ['Organization','Person'], |
|
| 298 | - 'category' => ['PhysicalActivityCategory','Text','Thing'], |
|
| 299 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
| 300 | - 'hoursAvailable' => ['OpeningHoursSpecification'], |
|
| 301 | - 'isRelatedTo' => ['Product','Service'], |
|
| 302 | - 'isSimilarTo' => ['Product','Service'], |
|
| 303 | - 'logo' => ['ImageObject','URL'], |
|
| 304 | - 'offers' => ['Offer'], |
|
| 305 | - 'provider' => ['Organization','Person'], |
|
| 306 | - 'providerMobility' => ['Text'], |
|
| 307 | - 'review' => ['Review'], |
|
| 308 | - 'serviceOutput' => ['Thing'], |
|
| 309 | - 'serviceType' => ['Text'], |
|
| 310 | - 'termsOfService' => ['Text','URL'] |
|
| 291 | + 'aggregateRating' => [ 'AggregateRating' ], |
|
| 292 | + 'areaServed' => [ 'AdministrativeArea', 'GeoShape', 'Place', 'Text' ], |
|
| 293 | + 'audience' => [ 'Audience' ], |
|
| 294 | + 'availableChannel' => [ 'ServiceChannel' ], |
|
| 295 | + 'award' => [ 'Text' ], |
|
| 296 | + 'brand' => [ 'Brand', 'Organization' ], |
|
| 297 | + 'broker' => [ 'Organization', 'Person' ], |
|
| 298 | + 'category' => [ 'PhysicalActivityCategory', 'Text', 'Thing' ], |
|
| 299 | + 'hasOfferCatalog' => [ 'OfferCatalog' ], |
|
| 300 | + 'hoursAvailable' => [ 'OpeningHoursSpecification' ], |
|
| 301 | + 'isRelatedTo' => [ 'Product', 'Service' ], |
|
| 302 | + 'isSimilarTo' => [ 'Product', 'Service' ], |
|
| 303 | + 'logo' => [ 'ImageObject', 'URL' ], |
|
| 304 | + 'offers' => [ 'Offer' ], |
|
| 305 | + 'provider' => [ 'Organization', 'Person' ], |
|
| 306 | + 'providerMobility' => [ 'Text' ], |
|
| 307 | + 'review' => [ 'Review' ], |
|
| 308 | + 'serviceOutput' => [ 'Thing' ], |
|
| 309 | + 'serviceType' => [ 'Text' ], |
|
| 310 | + 'termsOfService' => [ 'Text', 'URL' ] |
|
| 311 | 311 | ]; |
| 312 | 312 | |
| 313 | 313 | /** |
@@ -396,9 +396,9 @@ discard block |
||
| 396 | 396 | { |
| 397 | 397 | $rules = parent::rules(); |
| 398 | 398 | $rules = array_merge($rules, [ |
| 399 | - [['aggregateRating','areaServed','audience','availableChannel','award','brand','broker','category','hasOfferCatalog','hoursAvailable','isRelatedTo','isSimilarTo','logo','offers','provider','providerMobility','review','serviceOutput','serviceType','termsOfService'], 'validateJsonSchema'], |
|
| 400 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
| 401 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
| 399 | + [ [ 'aggregateRating', 'areaServed', 'audience', 'availableChannel', 'award', 'brand', 'broker', 'category', 'hasOfferCatalog', 'hoursAvailable', 'isRelatedTo', 'isSimilarTo', 'logo', 'offers', 'provider', 'providerMobility', 'review', 'serviceOutput', 'serviceType', 'termsOfService' ], 'validateJsonSchema' ], |
|
| 400 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
| 401 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
| 402 | 402 | ]); |
| 403 | 403 | |
| 404 | 404 | 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(); |