@@ -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 | // ========================================================================= |
@@ -185,13 +185,13 @@ discard block |
||
185 | 185 | * @var array |
186 | 186 | */ |
187 | 187 | static protected $_schemaPropertyExpectedTypes = [ |
188 | - 'articleBody' => ['Text'], |
|
189 | - 'articleSection' => ['Text'], |
|
190 | - 'pageEnd' => ['Integer','Text'], |
|
191 | - 'pageStart' => ['Integer','Text'], |
|
192 | - 'pagination' => ['Text'], |
|
193 | - 'speakable' => ['SpeakableSpecification','URL'], |
|
194 | - 'wordCount' => ['Integer'] |
|
188 | + 'articleBody' => [ 'Text' ], |
|
189 | + 'articleSection' => [ 'Text' ], |
|
190 | + 'pageEnd' => [ 'Integer', 'Text' ], |
|
191 | + 'pageStart' => [ 'Integer', 'Text' ], |
|
192 | + 'pagination' => [ 'Text' ], |
|
193 | + 'speakable' => [ 'SpeakableSpecification', 'URL' ], |
|
194 | + 'wordCount' => [ 'Integer' ] |
|
195 | 195 | ]; |
196 | 196 | |
197 | 197 | /** |
@@ -274,9 +274,9 @@ discard block |
||
274 | 274 | { |
275 | 275 | $rules = parent::rules(); |
276 | 276 | $rules = array_merge($rules, [ |
277 | - [['articleBody','articleSection','pageEnd','pageStart','pagination','speakable','wordCount'], 'validateJsonSchema'], |
|
278 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
279 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
277 | + [ [ 'articleBody', 'articleSection', 'pageEnd', 'pageStart', 'pagination', 'speakable', 'wordCount' ], 'validateJsonSchema' ], |
|
278 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
279 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
280 | 280 | ]); |
281 | 281 | |
282 | 282 | 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 | // ========================================================================= |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * @var array |
118 | 118 | */ |
119 | 119 | static protected $_schemaPropertyExpectedTypes = [ |
120 | - 'educationalRole' => ['Text'] |
|
120 | + 'educationalRole' => [ 'Text' ] |
|
121 | 121 | ]; |
122 | 122 | |
123 | 123 | /** |
@@ -187,9 +187,9 @@ discard block |
||
187 | 187 | { |
188 | 188 | $rules = parent::rules(); |
189 | 189 | $rules = array_merge($rules, [ |
190 | - [['educationalRole'], 'validateJsonSchema'], |
|
191 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
192 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
190 | + [ [ 'educationalRole' ], 'validateJsonSchema' ], |
|
191 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
192 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
193 | 193 | ]); |
194 | 194 | |
195 | 195 | 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 | // ========================================================================= |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @var array |
120 | 120 | */ |
121 | 121 | static protected $_schemaPropertyExpectedTypes = [ |
122 | - 'scheduledTime' => ['DateTime'] |
|
122 | + 'scheduledTime' => [ 'DateTime' ] |
|
123 | 123 | ]; |
124 | 124 | |
125 | 125 | /** |
@@ -189,9 +189,9 @@ discard block |
||
189 | 189 | { |
190 | 190 | $rules = parent::rules(); |
191 | 191 | $rules = array_merge($rules, [ |
192 | - [['scheduledTime'], 'validateJsonSchema'], |
|
193 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
194 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
192 | + [ [ 'scheduledTime' ], 'validateJsonSchema' ], |
|
193 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
194 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
195 | 195 | ]); |
196 | 196 | |
197 | 197 | 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 | // ========================================================================= |
@@ -282,26 +282,26 @@ discard block |
||
282 | 282 | * @var array |
283 | 283 | */ |
284 | 284 | static protected $_schemaPropertyExpectedTypes = [ |
285 | - 'baseSalary' => ['MonetaryAmount','Number','PriceSpecification'], |
|
286 | - 'datePosted' => ['Date'], |
|
287 | - 'educationRequirements' => ['Text'], |
|
288 | - 'employmentType' => ['Text'], |
|
289 | - 'estimatedSalary' => ['MonetaryAmount','Number','PriceSpecification'], |
|
290 | - 'experienceRequirements' => ['Text'], |
|
291 | - 'hiringOrganization' => ['Organization'], |
|
292 | - 'incentiveCompensation' => ['Text'], |
|
293 | - 'industry' => ['Text'], |
|
294 | - 'jobBenefits' => ['Text'], |
|
295 | - 'jobLocation' => ['Place'], |
|
296 | - 'occupationalCategory' => ['Text'], |
|
297 | - 'qualifications' => ['Text'], |
|
298 | - 'responsibilities' => ['Text'], |
|
299 | - 'salaryCurrency' => ['Text'], |
|
300 | - 'skills' => ['Text'], |
|
301 | - 'specialCommitments' => ['Text'], |
|
302 | - 'title' => ['Text'], |
|
303 | - 'validThrough' => ['DateTime'], |
|
304 | - 'workHours' => ['Text'] |
|
285 | + 'baseSalary' => [ 'MonetaryAmount', 'Number', 'PriceSpecification' ], |
|
286 | + 'datePosted' => [ 'Date' ], |
|
287 | + 'educationRequirements' => [ 'Text' ], |
|
288 | + 'employmentType' => [ 'Text' ], |
|
289 | + 'estimatedSalary' => [ 'MonetaryAmount', 'Number', 'PriceSpecification' ], |
|
290 | + 'experienceRequirements' => [ 'Text' ], |
|
291 | + 'hiringOrganization' => [ 'Organization' ], |
|
292 | + 'incentiveCompensation' => [ 'Text' ], |
|
293 | + 'industry' => [ 'Text' ], |
|
294 | + 'jobBenefits' => [ 'Text' ], |
|
295 | + 'jobLocation' => [ 'Place' ], |
|
296 | + 'occupationalCategory' => [ 'Text' ], |
|
297 | + 'qualifications' => [ 'Text' ], |
|
298 | + 'responsibilities' => [ 'Text' ], |
|
299 | + 'salaryCurrency' => [ 'Text' ], |
|
300 | + 'skills' => [ 'Text' ], |
|
301 | + 'specialCommitments' => [ 'Text' ], |
|
302 | + 'title' => [ 'Text' ], |
|
303 | + 'validThrough' => [ 'DateTime' ], |
|
304 | + 'workHours' => [ 'Text' ] |
|
305 | 305 | ]; |
306 | 306 | |
307 | 307 | /** |
@@ -390,9 +390,9 @@ discard block |
||
390 | 390 | { |
391 | 391 | $rules = parent::rules(); |
392 | 392 | $rules = array_merge($rules, [ |
393 | - [['baseSalary','datePosted','educationRequirements','employmentType','estimatedSalary','experienceRequirements','hiringOrganization','incentiveCompensation','industry','jobBenefits','jobLocation','occupationalCategory','qualifications','responsibilities','salaryCurrency','skills','specialCommitments','title','validThrough','workHours'], 'validateJsonSchema'], |
|
394 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
395 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
393 | + [ [ 'baseSalary', 'datePosted', 'educationRequirements', 'employmentType', 'estimatedSalary', 'experienceRequirements', 'hiringOrganization', 'incentiveCompensation', 'industry', 'jobBenefits', 'jobLocation', 'occupationalCategory', 'qualifications', 'responsibilities', 'salaryCurrency', 'skills', 'specialCommitments', 'title', 'validThrough', 'workHours' ], 'validateJsonSchema' ], |
|
394 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
395 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
396 | 396 | ]); |
397 | 397 | |
398 | 398 | 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 | // ========================================================================= |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * @var array |
119 | 119 | */ |
120 | 120 | static protected $_schemaPropertyExpectedTypes = [ |
121 | - 'supersededBy' => ['Class','Enumeration','Property'] |
|
121 | + 'supersededBy' => [ 'Class', 'Enumeration', 'Property' ] |
|
122 | 122 | ]; |
123 | 123 | |
124 | 124 | /** |
@@ -188,9 +188,9 @@ discard block |
||
188 | 188 | { |
189 | 189 | $rules = parent::rules(); |
190 | 190 | $rules = array_merge($rules, [ |
191 | - [['supersededBy'], 'validateJsonSchema'], |
|
192 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
193 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
191 | + [ [ 'supersededBy' ], 'validateJsonSchema' ], |
|
192 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
193 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
194 | 194 | ]); |
195 | 195 | |
196 | 196 | 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 | // ========================================================================= |
@@ -214,17 +214,17 @@ discard block |
||
214 | 214 | * @var array |
215 | 215 | */ |
216 | 216 | static protected $_schemaPropertyExpectedTypes = [ |
217 | - 'additionalType' => ['URL'], |
|
218 | - 'alternateName' => ['Text'], |
|
219 | - 'description' => ['Text'], |
|
220 | - 'disambiguatingDescription' => ['Text'], |
|
221 | - 'identifier' => ['PropertyValue','Text','URL'], |
|
222 | - 'image' => ['ImageObject','URL'], |
|
223 | - 'mainEntityOfPage' => ['CreativeWork','URL'], |
|
224 | - 'name' => ['Text'], |
|
225 | - 'potentialAction' => ['Action'], |
|
226 | - 'sameAs' => ['URL'], |
|
227 | - 'url' => ['URL'] |
|
217 | + 'additionalType' => [ 'URL' ], |
|
218 | + 'alternateName' => [ 'Text' ], |
|
219 | + 'description' => [ 'Text' ], |
|
220 | + 'disambiguatingDescription' => [ 'Text' ], |
|
221 | + 'identifier' => [ 'PropertyValue', 'Text', 'URL' ], |
|
222 | + 'image' => [ 'ImageObject', 'URL' ], |
|
223 | + 'mainEntityOfPage' => [ 'CreativeWork', 'URL' ], |
|
224 | + 'name' => [ 'Text' ], |
|
225 | + 'potentialAction' => [ 'Action' ], |
|
226 | + 'sameAs' => [ 'URL' ], |
|
227 | + 'url' => [ 'URL' ] |
|
228 | 228 | ]; |
229 | 229 | |
230 | 230 | /** |
@@ -304,9 +304,9 @@ discard block |
||
304 | 304 | { |
305 | 305 | $rules = parent::rules(); |
306 | 306 | $rules = array_merge($rules, [ |
307 | - [['additionalType','alternateName','description','disambiguatingDescription','identifier','image','mainEntityOfPage','name','potentialAction','sameAs','url'], 'validateJsonSchema'], |
|
308 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
309 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
307 | + [ [ 'additionalType', 'alternateName', 'description', 'disambiguatingDescription', 'identifier', 'image', 'mainEntityOfPage', 'name', 'potentialAction', 'sameAs', 'url' ], 'validateJsonSchema' ], |
|
308 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
309 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
310 | 310 | ]); |
311 | 311 | |
312 | 312 | 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 | // ========================================================================= |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * @var array |
119 | 119 | */ |
120 | 120 | static protected $_schemaPropertyExpectedTypes = [ |
121 | - 'requiredQuantity' => ['Number','QuantitativeValue','Text'] |
|
121 | + 'requiredQuantity' => [ 'Number', 'QuantitativeValue', 'Text' ] |
|
122 | 122 | ]; |
123 | 123 | |
124 | 124 | /** |
@@ -188,9 +188,9 @@ discard block |
||
188 | 188 | { |
189 | 189 | $rules = parent::rules(); |
190 | 190 | $rules = array_merge($rules, [ |
191 | - [['requiredQuantity'], 'validateJsonSchema'], |
|
192 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
193 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
191 | + [ [ 'requiredQuantity' ], 'validateJsonSchema' ], |
|
192 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
193 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
194 | 194 | ]); |
195 | 195 | |
196 | 196 | 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 | // ========================================================================= |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @var array |
120 | 120 | */ |
121 | 121 | static protected $_schemaPropertyExpectedTypes = [ |
122 | - 'sharedContent' => ['CreativeWork'] |
|
122 | + 'sharedContent' => [ 'CreativeWork' ] |
|
123 | 123 | ]; |
124 | 124 | |
125 | 125 | /** |
@@ -192,9 +192,9 @@ discard block |
||
192 | 192 | { |
193 | 193 | $rules = parent::rules(); |
194 | 194 | $rules = array_merge($rules, [ |
195 | - [['sharedContent'], 'validateJsonSchema'], |
|
196 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
197 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
195 | + [ [ 'sharedContent' ], 'validateJsonSchema' ], |
|
196 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
197 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
198 | 198 | ]); |
199 | 199 | |
200 | 200 | 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(); |
@@ -62,35 +62,35 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @var array |
64 | 64 | */ |
65 | - static public $schemaPropertyNames = []; |
|
65 | + static public $schemaPropertyNames = [ ]; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * The Schema.org composed Property Expected Types |
69 | 69 | * |
70 | 70 | * @var array |
71 | 71 | */ |
72 | - static public $schemaPropertyExpectedTypes = []; |
|
72 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
73 | 73 | |
74 | 74 | /** |
75 | 75 | * The Schema.org composed Property Descriptions |
76 | 76 | * |
77 | 77 | * @var array |
78 | 78 | */ |
79 | - static public $schemaPropertyDescriptions = []; |
|
79 | + static public $schemaPropertyDescriptions = [ ]; |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * The Schema.org composed Google Required Schema for this type |
83 | 83 | * |
84 | 84 | * @var array |
85 | 85 | */ |
86 | - static public $googleRequiredSchema = []; |
|
86 | + static public $googleRequiredSchema = [ ]; |
|
87 | 87 | |
88 | 88 | /** |
89 | 89 | * The Schema.org composed Google Recommended Schema for this type |
90 | 90 | * |
91 | 91 | * @var array |
92 | 92 | */ |
93 | - static public $googleRecommendedSchema = []; |
|
93 | + static public $googleRecommendedSchema = [ ]; |
|
94 | 94 | |
95 | 95 | // Public Properties |
96 | 96 | // ========================================================================= |
@@ -218,18 +218,18 @@ discard block |
||
218 | 218 | * @var array |
219 | 219 | */ |
220 | 220 | static protected $_schemaPropertyExpectedTypes = [ |
221 | - 'bookingTime' => ['DateTime'], |
|
222 | - 'broker' => ['Organization','Person'], |
|
223 | - 'modifiedTime' => ['DateTime'], |
|
224 | - 'priceCurrency' => ['Text'], |
|
225 | - 'programMembershipUsed' => ['ProgramMembership'], |
|
226 | - 'provider' => ['Organization','Person'], |
|
227 | - 'reservationFor' => ['Thing'], |
|
228 | - 'reservationId' => ['Text'], |
|
229 | - 'reservationStatus' => ['ReservationStatusType'], |
|
230 | - 'reservedTicket' => ['Ticket'], |
|
231 | - 'totalPrice' => ['Number','PriceSpecification','Text'], |
|
232 | - 'underName' => ['Organization','Person'] |
|
221 | + 'bookingTime' => [ 'DateTime' ], |
|
222 | + 'broker' => [ 'Organization', 'Person' ], |
|
223 | + 'modifiedTime' => [ 'DateTime' ], |
|
224 | + 'priceCurrency' => [ 'Text' ], |
|
225 | + 'programMembershipUsed' => [ 'ProgramMembership' ], |
|
226 | + 'provider' => [ 'Organization', 'Person' ], |
|
227 | + 'reservationFor' => [ 'Thing' ], |
|
228 | + 'reservationId' => [ 'Text' ], |
|
229 | + 'reservationStatus' => [ 'ReservationStatusType' ], |
|
230 | + 'reservedTicket' => [ 'Ticket' ], |
|
231 | + 'totalPrice' => [ 'Number', 'PriceSpecification', 'Text' ], |
|
232 | + 'underName' => [ 'Organization', 'Person' ] |
|
233 | 233 | ]; |
234 | 234 | |
235 | 235 | /** |
@@ -310,9 +310,9 @@ discard block |
||
310 | 310 | { |
311 | 311 | $rules = parent::rules(); |
312 | 312 | $rules = array_merge($rules, [ |
313 | - [['bookingTime','broker','modifiedTime','priceCurrency','programMembershipUsed','provider','reservationFor','reservationId','reservationStatus','reservedTicket','totalPrice','underName'], 'validateJsonSchema'], |
|
314 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
315 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
313 | + [ [ 'bookingTime', 'broker', 'modifiedTime', 'priceCurrency', 'programMembershipUsed', 'provider', 'reservationFor', 'reservationId', 'reservationStatus', 'reservedTicket', 'totalPrice', 'underName' ], 'validateJsonSchema' ], |
|
314 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
315 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
316 | 316 | ]); |
317 | 317 | |
318 | 318 | 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(); |