@@ -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 | // ========================================================================= |
@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | * @var array |
127 | 127 | */ |
128 | 128 | static protected $_schemaPropertyExpectedTypes = [ |
129 | - 'childMaxAge' => ['Number'], |
|
130 | - 'childMinAge' => ['Number'] |
|
129 | + 'childMaxAge' => [ 'Number' ], |
|
130 | + 'childMinAge' => [ 'Number' ] |
|
131 | 131 | ]; |
132 | 132 | |
133 | 133 | /** |
@@ -198,9 +198,9 @@ discard block |
||
198 | 198 | { |
199 | 199 | $rules = parent::rules(); |
200 | 200 | $rules = array_merge($rules, [ |
201 | - [['childMaxAge','childMinAge'], 'validateJsonSchema'], |
|
202 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
203 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
201 | + [ [ 'childMaxAge', 'childMinAge' ], 'validateJsonSchema' ], |
|
202 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
203 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
204 | 204 | ]); |
205 | 205 | |
206 | 206 | 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 | - 'winner' => ['Person'] |
|
120 | + 'winner' => [ 'Person' ] |
|
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 | - [['winner'], '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 | + [ [ 'winner' ], '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(); |
@@ -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 | - 'steps' => ['CreativeWork','ItemList','Text'] |
|
122 | + 'steps' => [ 'CreativeWork', 'ItemList', 'Text' ] |
|
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 | - [['steps'], '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 | + [ [ 'steps' ], '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 | // ========================================================================= |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * @var array |
121 | 121 | */ |
122 | 122 | static protected $_schemaPropertyExpectedTypes = [ |
123 | - 'serviceOperator' => ['Organization'] |
|
123 | + 'serviceOperator' => [ 'Organization' ] |
|
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 | - [['serviceOperator'], '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 | + [ [ 'serviceOperator' ], '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(); |
@@ -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 | // ========================================================================= |
@@ -190,16 +190,16 @@ discard block |
||
190 | 190 | * @var array |
191 | 191 | */ |
192 | 192 | static protected $_schemaPropertyExpectedTypes = [ |
193 | - 'composer' => ['Organization','Person'], |
|
194 | - 'firstPerformance' => ['Event'], |
|
195 | - 'includedComposition' => ['MusicComposition'], |
|
196 | - 'iswcCode' => ['Text'], |
|
197 | - 'lyricist' => ['Person'], |
|
198 | - 'lyrics' => ['CreativeWork'], |
|
199 | - 'musicArrangement' => ['MusicComposition'], |
|
200 | - 'musicCompositionForm' => ['Text'], |
|
201 | - 'musicalKey' => ['Text'], |
|
202 | - 'recordedAs' => ['MusicRecording'] |
|
193 | + 'composer' => [ 'Organization', 'Person' ], |
|
194 | + 'firstPerformance' => [ 'Event' ], |
|
195 | + 'includedComposition' => [ 'MusicComposition' ], |
|
196 | + 'iswcCode' => [ 'Text' ], |
|
197 | + 'lyricist' => [ 'Person' ], |
|
198 | + 'lyrics' => [ 'CreativeWork' ], |
|
199 | + 'musicArrangement' => [ 'MusicComposition' ], |
|
200 | + 'musicCompositionForm' => [ 'Text' ], |
|
201 | + 'musicalKey' => [ 'Text' ], |
|
202 | + 'recordedAs' => [ 'MusicRecording' ] |
|
203 | 203 | ]; |
204 | 204 | |
205 | 205 | /** |
@@ -278,9 +278,9 @@ discard block |
||
278 | 278 | { |
279 | 279 | $rules = parent::rules(); |
280 | 280 | $rules = array_merge($rules, [ |
281 | - [['composer','firstPerformance','includedComposition','iswcCode','lyricist','lyrics','musicArrangement','musicCompositionForm','musicalKey','recordedAs'], 'validateJsonSchema'], |
|
282 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
283 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
281 | + [ [ 'composer', 'firstPerformance', 'includedComposition', 'iswcCode', 'lyricist', 'lyrics', 'musicArrangement', 'musicCompositionForm', 'musicalKey', 'recordedAs' ], 'validateJsonSchema' ], |
|
282 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
283 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
284 | 284 | ]); |
285 | 285 | |
286 | 286 | 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 | // ========================================================================= |
@@ -142,10 +142,10 @@ discard block |
||
142 | 142 | * @var array |
143 | 143 | */ |
144 | 144 | static protected $_schemaPropertyExpectedTypes = [ |
145 | - 'acquiredFrom' => ['Organization','Person'], |
|
146 | - 'ownedFrom' => ['DateTime'], |
|
147 | - 'ownedThrough' => ['DateTime'], |
|
148 | - 'typeOfGood' => ['Product','Service'] |
|
145 | + 'acquiredFrom' => [ 'Organization', 'Person' ], |
|
146 | + 'ownedFrom' => [ 'DateTime' ], |
|
147 | + 'ownedThrough' => [ 'DateTime' ], |
|
148 | + 'typeOfGood' => [ 'Product', 'Service' ] |
|
149 | 149 | ]; |
150 | 150 | |
151 | 151 | /** |
@@ -218,9 +218,9 @@ discard block |
||
218 | 218 | { |
219 | 219 | $rules = parent::rules(); |
220 | 220 | $rules = array_merge($rules, [ |
221 | - [['acquiredFrom','ownedFrom','ownedThrough','typeOfGood'], 'validateJsonSchema'], |
|
222 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
223 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
221 | + [ [ 'acquiredFrom', 'ownedFrom', 'ownedThrough', 'typeOfGood' ], 'validateJsonSchema' ], |
|
222 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
223 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
224 | 224 | ]); |
225 | 225 | |
226 | 226 | 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 | - 'actionOption' => ['Text','Thing'] |
|
122 | + 'actionOption' => [ 'Text', 'Thing' ] |
|
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 | - [['actionOption'], '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 | + [ [ 'actionOption' ], '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 | // ========================================================================= |
@@ -502,44 +502,44 @@ discard block |
||
502 | 502 | * @var array |
503 | 503 | */ |
504 | 504 | static protected $_schemaPropertyExpectedTypes = [ |
505 | - 'accelerationTime' => ['QuantitativeValue'], |
|
506 | - 'bodyType' => ['QualitativeValue','Text','URL'], |
|
507 | - 'cargoVolume' => ['QuantitativeValue'], |
|
508 | - 'dateVehicleFirstRegistered' => ['Date'], |
|
509 | - 'driveWheelConfiguration' => ['DriveWheelConfigurationValue','Text'], |
|
510 | - 'emissionsCO2' => ['Number'], |
|
511 | - 'fuelCapacity' => ['QuantitativeValue'], |
|
512 | - 'fuelConsumption' => ['QuantitativeValue'], |
|
513 | - 'fuelEfficiency' => ['QuantitativeValue'], |
|
514 | - 'fuelType' => ['QualitativeValue','Text','URL'], |
|
515 | - 'knownVehicleDamages' => ['Text'], |
|
516 | - 'meetsEmissionStandard' => ['QualitativeValue','Text','URL'], |
|
517 | - 'mileageFromOdometer' => ['QuantitativeValue'], |
|
518 | - 'modelDate' => ['Date'], |
|
519 | - 'numberOfAirbags' => ['Number','Text'], |
|
520 | - 'numberOfAxles' => ['Number','QuantitativeValue'], |
|
521 | - 'numberOfDoors' => ['Number','QuantitativeValue'], |
|
522 | - 'numberOfForwardGears' => ['Number','QuantitativeValue'], |
|
523 | - 'numberOfPreviousOwners' => ['Number','QuantitativeValue'], |
|
524 | - 'payload' => ['QuantitativeValue'], |
|
525 | - 'productionDate' => ['Date'], |
|
526 | - 'purchaseDate' => ['Date'], |
|
527 | - 'seatingCapacity' => ['Number','QuantitativeValue'], |
|
528 | - 'speed' => ['QuantitativeValue'], |
|
529 | - 'steeringPosition' => ['SteeringPositionValue'], |
|
530 | - 'tongueWeight' => ['QuantitativeValue'], |
|
531 | - 'trailerWeight' => ['QuantitativeValue'], |
|
532 | - 'vehicleConfiguration' => ['Text'], |
|
533 | - 'vehicleEngine' => ['EngineSpecification'], |
|
534 | - 'vehicleIdentificationNumber' => ['Text'], |
|
535 | - 'vehicleInteriorColor' => ['Text'], |
|
536 | - 'vehicleInteriorType' => ['Text'], |
|
537 | - 'vehicleModelDate' => ['Date'], |
|
538 | - 'vehicleSeatingCapacity' => ['Number','QuantitativeValue'], |
|
539 | - 'vehicleSpecialUsage' => ['CarUsageType','Text'], |
|
540 | - 'vehicleTransmission' => ['QualitativeValue','Text','URL'], |
|
541 | - 'weightTotal' => ['QuantitativeValue'], |
|
542 | - 'wheelbase' => ['QuantitativeValue'] |
|
505 | + 'accelerationTime' => [ 'QuantitativeValue' ], |
|
506 | + 'bodyType' => [ 'QualitativeValue', 'Text', 'URL' ], |
|
507 | + 'cargoVolume' => [ 'QuantitativeValue' ], |
|
508 | + 'dateVehicleFirstRegistered' => [ 'Date' ], |
|
509 | + 'driveWheelConfiguration' => [ 'DriveWheelConfigurationValue', 'Text' ], |
|
510 | + 'emissionsCO2' => [ 'Number' ], |
|
511 | + 'fuelCapacity' => [ 'QuantitativeValue' ], |
|
512 | + 'fuelConsumption' => [ 'QuantitativeValue' ], |
|
513 | + 'fuelEfficiency' => [ 'QuantitativeValue' ], |
|
514 | + 'fuelType' => [ 'QualitativeValue', 'Text', 'URL' ], |
|
515 | + 'knownVehicleDamages' => [ 'Text' ], |
|
516 | + 'meetsEmissionStandard' => [ 'QualitativeValue', 'Text', 'URL' ], |
|
517 | + 'mileageFromOdometer' => [ 'QuantitativeValue' ], |
|
518 | + 'modelDate' => [ 'Date' ], |
|
519 | + 'numberOfAirbags' => [ 'Number', 'Text' ], |
|
520 | + 'numberOfAxles' => [ 'Number', 'QuantitativeValue' ], |
|
521 | + 'numberOfDoors' => [ 'Number', 'QuantitativeValue' ], |
|
522 | + 'numberOfForwardGears' => [ 'Number', 'QuantitativeValue' ], |
|
523 | + 'numberOfPreviousOwners' => [ 'Number', 'QuantitativeValue' ], |
|
524 | + 'payload' => [ 'QuantitativeValue' ], |
|
525 | + 'productionDate' => [ 'Date' ], |
|
526 | + 'purchaseDate' => [ 'Date' ], |
|
527 | + 'seatingCapacity' => [ 'Number', 'QuantitativeValue' ], |
|
528 | + 'speed' => [ 'QuantitativeValue' ], |
|
529 | + 'steeringPosition' => [ 'SteeringPositionValue' ], |
|
530 | + 'tongueWeight' => [ 'QuantitativeValue' ], |
|
531 | + 'trailerWeight' => [ 'QuantitativeValue' ], |
|
532 | + 'vehicleConfiguration' => [ 'Text' ], |
|
533 | + 'vehicleEngine' => [ 'EngineSpecification' ], |
|
534 | + 'vehicleIdentificationNumber' => [ 'Text' ], |
|
535 | + 'vehicleInteriorColor' => [ 'Text' ], |
|
536 | + 'vehicleInteriorType' => [ 'Text' ], |
|
537 | + 'vehicleModelDate' => [ 'Date' ], |
|
538 | + 'vehicleSeatingCapacity' => [ 'Number', 'QuantitativeValue' ], |
|
539 | + 'vehicleSpecialUsage' => [ 'CarUsageType', 'Text' ], |
|
540 | + 'vehicleTransmission' => [ 'QualitativeValue', 'Text', 'URL' ], |
|
541 | + 'weightTotal' => [ 'QuantitativeValue' ], |
|
542 | + 'wheelbase' => [ 'QuantitativeValue' ] |
|
543 | 543 | ]; |
544 | 544 | |
545 | 545 | /** |
@@ -646,9 +646,9 @@ discard block |
||
646 | 646 | { |
647 | 647 | $rules = parent::rules(); |
648 | 648 | $rules = array_merge($rules, [ |
649 | - [['accelerationTime','bodyType','cargoVolume','dateVehicleFirstRegistered','driveWheelConfiguration','emissionsCO2','fuelCapacity','fuelConsumption','fuelEfficiency','fuelType','knownVehicleDamages','meetsEmissionStandard','mileageFromOdometer','modelDate','numberOfAirbags','numberOfAxles','numberOfDoors','numberOfForwardGears','numberOfPreviousOwners','payload','productionDate','purchaseDate','seatingCapacity','speed','steeringPosition','tongueWeight','trailerWeight','vehicleConfiguration','vehicleEngine','vehicleIdentificationNumber','vehicleInteriorColor','vehicleInteriorType','vehicleModelDate','vehicleSeatingCapacity','vehicleSpecialUsage','vehicleTransmission','weightTotal','wheelbase'], 'validateJsonSchema'], |
|
650 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
651 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
649 | + [ [ 'accelerationTime', 'bodyType', 'cargoVolume', 'dateVehicleFirstRegistered', 'driveWheelConfiguration', 'emissionsCO2', 'fuelCapacity', 'fuelConsumption', 'fuelEfficiency', 'fuelType', 'knownVehicleDamages', 'meetsEmissionStandard', 'mileageFromOdometer', 'modelDate', 'numberOfAirbags', 'numberOfAxles', 'numberOfDoors', 'numberOfForwardGears', 'numberOfPreviousOwners', 'payload', 'productionDate', 'purchaseDate', 'seatingCapacity', 'speed', 'steeringPosition', 'tongueWeight', 'trailerWeight', 'vehicleConfiguration', 'vehicleEngine', 'vehicleIdentificationNumber', 'vehicleInteriorColor', 'vehicleInteriorType', 'vehicleModelDate', 'vehicleSeatingCapacity', 'vehicleSpecialUsage', 'vehicleTransmission', 'weightTotal', 'wheelbase' ], 'validateJsonSchema' ], |
|
650 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
651 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
652 | 652 | ]); |
653 | 653 | |
654 | 654 | 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(); |
@@ -63,35 +63,35 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @var array |
65 | 65 | */ |
66 | - static public $schemaPropertyNames = []; |
|
66 | + static public $schemaPropertyNames = [ ]; |
|
67 | 67 | |
68 | 68 | /** |
69 | 69 | * The Schema.org composed Property Expected Types |
70 | 70 | * |
71 | 71 | * @var array |
72 | 72 | */ |
73 | - static public $schemaPropertyExpectedTypes = []; |
|
73 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
74 | 74 | |
75 | 75 | /** |
76 | 76 | * The Schema.org composed Property Descriptions |
77 | 77 | * |
78 | 78 | * @var array |
79 | 79 | */ |
80 | - static public $schemaPropertyDescriptions = []; |
|
80 | + static public $schemaPropertyDescriptions = [ ]; |
|
81 | 81 | |
82 | 82 | /** |
83 | 83 | * The Schema.org composed Google Required Schema for this type |
84 | 84 | * |
85 | 85 | * @var array |
86 | 86 | */ |
87 | - static public $googleRequiredSchema = []; |
|
87 | + static public $googleRequiredSchema = [ ]; |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * The Schema.org composed Google Recommended Schema for this type |
91 | 91 | * |
92 | 92 | * @var array |
93 | 93 | */ |
94 | - static public $googleRecommendedSchema = []; |
|
94 | + static public $googleRecommendedSchema = [ ]; |
|
95 | 95 | |
96 | 96 | // Public Properties |
97 | 97 | // ========================================================================= |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @var array |
122 | 122 | */ |
123 | 123 | static protected $_schemaPropertyExpectedTypes = [ |
124 | - 'deliveryMethod' => ['DeliveryMethod'] |
|
124 | + 'deliveryMethod' => [ 'DeliveryMethod' ] |
|
125 | 125 | ]; |
126 | 126 | |
127 | 127 | /** |
@@ -191,9 +191,9 @@ discard block |
||
191 | 191 | { |
192 | 192 | $rules = parent::rules(); |
193 | 193 | $rules = array_merge($rules, [ |
194 | - [['deliveryMethod'], 'validateJsonSchema'], |
|
195 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
196 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
194 | + [ [ 'deliveryMethod' ], 'validateJsonSchema' ], |
|
195 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
196 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
197 | 197 | ]); |
198 | 198 | |
199 | 199 | 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(); |