@@ -64,35 +64,35 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @var array |
66 | 66 | */ |
67 | - static public $schemaPropertyNames = []; |
|
67 | + static public $schemaPropertyNames = [ ]; |
|
68 | 68 | |
69 | 69 | /** |
70 | 70 | * The Schema.org composed Property Expected Types |
71 | 71 | * |
72 | 72 | * @var array |
73 | 73 | */ |
74 | - static public $schemaPropertyExpectedTypes = []; |
|
74 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
75 | 75 | |
76 | 76 | /** |
77 | 77 | * The Schema.org composed Property Descriptions |
78 | 78 | * |
79 | 79 | * @var array |
80 | 80 | */ |
81 | - static public $schemaPropertyDescriptions = []; |
|
81 | + static public $schemaPropertyDescriptions = [ ]; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * The Schema.org composed Google Required Schema for this type |
85 | 85 | * |
86 | 86 | * @var array |
87 | 87 | */ |
88 | - static public $googleRequiredSchema = []; |
|
88 | + static public $googleRequiredSchema = [ ]; |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * The Schema.org composed Google Recommended Schema for this type |
92 | 92 | * |
93 | 93 | * @var array |
94 | 94 | */ |
95 | - static public $googleRecommendedSchema = []; |
|
95 | + static public $googleRecommendedSchema = [ ]; |
|
96 | 96 | |
97 | 97 | // Public Properties |
98 | 98 | // ========================================================================= |
@@ -131,8 +131,8 @@ discard block |
||
131 | 131 | * @var array |
132 | 132 | */ |
133 | 133 | static protected $_schemaPropertyExpectedTypes = [ |
134 | - 'deliveryMethod' => ['DeliveryMethod'], |
|
135 | - 'sender' => ['Audience','Organization','Person'] |
|
134 | + 'deliveryMethod' => [ 'DeliveryMethod' ], |
|
135 | + 'sender' => [ 'Audience', 'Organization', 'Person' ] |
|
136 | 136 | ]; |
137 | 137 | |
138 | 138 | /** |
@@ -203,9 +203,9 @@ discard block |
||
203 | 203 | { |
204 | 204 | $rules = parent::rules(); |
205 | 205 | $rules = array_merge($rules, [ |
206 | - [['deliveryMethod','sender'], 'validateJsonSchema'], |
|
207 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
208 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
206 | + [ [ 'deliveryMethod', 'sender' ], 'validateJsonSchema' ], |
|
207 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
208 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
209 | 209 | ]); |
210 | 210 | |
211 | 211 | 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 | // ========================================================================= |
@@ -179,13 +179,13 @@ discard block |
||
179 | 179 | * @var array |
180 | 180 | */ |
181 | 181 | static protected $_schemaPropertyExpectedTypes = [ |
182 | - 'additionalProperty' => ['PropertyValue'], |
|
183 | - 'maxValue' => ['Number'], |
|
184 | - 'minValue' => ['Number'], |
|
185 | - 'unitCode' => ['Text','URL'], |
|
186 | - 'unitText' => ['Text'], |
|
187 | - 'value' => ['Boolean','Number','StructuredValue','Text'], |
|
188 | - 'valueReference' => ['Enumeration','PropertyValue','QualitativeValue','QuantitativeValue','StructuredValue'] |
|
182 | + 'additionalProperty' => [ 'PropertyValue' ], |
|
183 | + 'maxValue' => [ 'Number' ], |
|
184 | + 'minValue' => [ 'Number' ], |
|
185 | + 'unitCode' => [ 'Text', 'URL' ], |
|
186 | + 'unitText' => [ 'Text' ], |
|
187 | + 'value' => [ 'Boolean', 'Number', 'StructuredValue', 'Text' ], |
|
188 | + 'valueReference' => [ 'Enumeration', 'PropertyValue', 'QualitativeValue', 'QuantitativeValue', 'StructuredValue' ] |
|
189 | 189 | ]; |
190 | 190 | |
191 | 191 | /** |
@@ -261,9 +261,9 @@ discard block |
||
261 | 261 | { |
262 | 262 | $rules = parent::rules(); |
263 | 263 | $rules = array_merge($rules, [ |
264 | - [['additionalProperty','maxValue','minValue','unitCode','unitText','value','valueReference'], 'validateJsonSchema'], |
|
265 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
266 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
264 | + [ [ 'additionalProperty', 'maxValue', 'minValue', 'unitCode', 'unitText', 'value', 'valueReference' ], 'validateJsonSchema' ], |
|
265 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
266 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
267 | 267 | ]); |
268 | 268 | |
269 | 269 | 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 | // ========================================================================= |
@@ -128,8 +128,8 @@ discard block |
||
128 | 128 | * @var array |
129 | 129 | */ |
130 | 130 | static protected $_schemaPropertyExpectedTypes = [ |
131 | - 'durationOfWarranty' => ['QuantitativeValue'], |
|
132 | - 'warrantyScope' => ['WarrantyScope'] |
|
131 | + 'durationOfWarranty' => [ 'QuantitativeValue' ], |
|
132 | + 'warrantyScope' => [ 'WarrantyScope' ] |
|
133 | 133 | ]; |
134 | 134 | |
135 | 135 | /** |
@@ -200,9 +200,9 @@ discard block |
||
200 | 200 | { |
201 | 201 | $rules = parent::rules(); |
202 | 202 | $rules = array_merge($rules, [ |
203 | - [['durationOfWarranty','warrantyScope'], 'validateJsonSchema'], |
|
204 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
205 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
203 | + [ [ 'durationOfWarranty', 'warrantyScope' ], 'validateJsonSchema' ], |
|
204 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
205 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
206 | 206 | ]); |
207 | 207 | |
208 | 208 | 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 | // ========================================================================= |
@@ -158,12 +158,12 @@ discard block |
||
158 | 158 | * @var array |
159 | 159 | */ |
160 | 160 | static protected $_schemaPropertyExpectedTypes = [ |
161 | - 'address' => ['PostalAddress','Text'], |
|
162 | - 'addressCountry' => ['Country','Text'], |
|
163 | - 'elevation' => ['Number','Text'], |
|
164 | - 'latitude' => ['Number','Text'], |
|
165 | - 'longitude' => ['Number','Text'], |
|
166 | - 'postalCode' => ['Text'] |
|
161 | + 'address' => [ 'PostalAddress', 'Text' ], |
|
162 | + 'addressCountry' => [ 'Country', 'Text' ], |
|
163 | + 'elevation' => [ 'Number', 'Text' ], |
|
164 | + 'latitude' => [ 'Number', 'Text' ], |
|
165 | + 'longitude' => [ 'Number', 'Text' ], |
|
166 | + 'postalCode' => [ 'Text' ] |
|
167 | 167 | ]; |
168 | 168 | |
169 | 169 | /** |
@@ -238,9 +238,9 @@ discard block |
||
238 | 238 | { |
239 | 239 | $rules = parent::rules(); |
240 | 240 | $rules = array_merge($rules, [ |
241 | - [['address','addressCountry','elevation','latitude','longitude','postalCode'], 'validateJsonSchema'], |
|
242 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
243 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
241 | + [ [ 'address', 'addressCountry', 'elevation', 'latitude', 'longitude', 'postalCode' ], 'validateJsonSchema' ], |
|
242 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
243 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
244 | 244 | ]); |
245 | 245 | |
246 | 246 | 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 | // ========================================================================= |
@@ -201,15 +201,15 @@ discard block |
||
201 | 201 | * @var array |
202 | 202 | */ |
203 | 203 | static protected $_schemaPropertyExpectedTypes = [ |
204 | - 'eligibleQuantity' => ['QuantitativeValue'], |
|
205 | - 'eligibleTransactionVolume' => ['PriceSpecification'], |
|
206 | - 'maxPrice' => ['Number'], |
|
207 | - 'minPrice' => ['Number'], |
|
208 | - 'price' => ['Number','Text'], |
|
209 | - 'priceCurrency' => ['Text'], |
|
210 | - 'validFrom' => ['DateTime'], |
|
211 | - 'validThrough' => ['DateTime'], |
|
212 | - 'valueAddedTaxIncluded' => ['Boolean'] |
|
204 | + 'eligibleQuantity' => [ 'QuantitativeValue' ], |
|
205 | + 'eligibleTransactionVolume' => [ 'PriceSpecification' ], |
|
206 | + 'maxPrice' => [ 'Number' ], |
|
207 | + 'minPrice' => [ 'Number' ], |
|
208 | + 'price' => [ 'Number', 'Text' ], |
|
209 | + 'priceCurrency' => [ 'Text' ], |
|
210 | + 'validFrom' => [ 'DateTime' ], |
|
211 | + 'validThrough' => [ 'DateTime' ], |
|
212 | + 'valueAddedTaxIncluded' => [ 'Boolean' ] |
|
213 | 213 | ]; |
214 | 214 | |
215 | 215 | /** |
@@ -287,9 +287,9 @@ discard block |
||
287 | 287 | { |
288 | 288 | $rules = parent::rules(); |
289 | 289 | $rules = array_merge($rules, [ |
290 | - [['eligibleQuantity','eligibleTransactionVolume','maxPrice','minPrice','price','priceCurrency','validFrom','validThrough','valueAddedTaxIncluded'], 'validateJsonSchema'], |
|
291 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
292 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
290 | + [ [ 'eligibleQuantity', 'eligibleTransactionVolume', 'maxPrice', 'minPrice', 'price', 'priceCurrency', 'validFrom', 'validThrough', 'valueAddedTaxIncluded' ], 'validateJsonSchema' ], |
|
291 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
292 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
293 | 293 | ]); |
294 | 294 | |
295 | 295 | 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 | // ========================================================================= |
@@ -154,11 +154,11 @@ discard block |
||
154 | 154 | * @var array |
155 | 155 | */ |
156 | 156 | static protected $_schemaPropertyExpectedTypes = [ |
157 | - 'closes' => ['Time'], |
|
158 | - 'dayOfWeek' => ['DayOfWeek'], |
|
159 | - 'opens' => ['Time'], |
|
160 | - 'validFrom' => ['DateTime'], |
|
161 | - 'validThrough' => ['DateTime'] |
|
157 | + 'closes' => [ 'Time' ], |
|
158 | + 'dayOfWeek' => [ 'DayOfWeek' ], |
|
159 | + 'opens' => [ 'Time' ], |
|
160 | + 'validFrom' => [ 'DateTime' ], |
|
161 | + 'validThrough' => [ 'DateTime' ] |
|
162 | 162 | ]; |
163 | 163 | |
164 | 164 | /** |
@@ -232,9 +232,9 @@ discard block |
||
232 | 232 | { |
233 | 233 | $rules = parent::rules(); |
234 | 234 | $rules = array_merge($rules, [ |
235 | - [['closes','dayOfWeek','opens','validFrom','validThrough'], 'validateJsonSchema'], |
|
236 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
237 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
235 | + [ [ 'closes', 'dayOfWeek', 'opens', 'validFrom', 'validThrough' ], 'validateJsonSchema' ], |
|
236 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
237 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
238 | 238 | ]); |
239 | 239 | |
240 | 240 | 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 | - 'numberedPosition' => ['Number'] |
|
122 | + 'numberedPosition' => [ 'Number' ] |
|
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 | - [['numberedPosition'], '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 | + [ [ 'numberedPosition' ], '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(); |
@@ -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 | // ========================================================================= |
@@ -158,12 +158,12 @@ discard block |
||
158 | 158 | * @var array |
159 | 159 | */ |
160 | 160 | static protected $_schemaPropertyExpectedTypes = [ |
161 | - 'byArtist' => ['MusicGroup'], |
|
162 | - 'duration' => ['Duration'], |
|
163 | - 'inAlbum' => ['MusicAlbum'], |
|
164 | - 'inPlaylist' => ['MusicPlaylist'], |
|
165 | - 'isrcCode' => ['Text'], |
|
166 | - 'recordingOf' => ['MusicComposition'] |
|
161 | + 'byArtist' => [ 'MusicGroup' ], |
|
162 | + 'duration' => [ 'Duration' ], |
|
163 | + 'inAlbum' => [ 'MusicAlbum' ], |
|
164 | + 'inPlaylist' => [ 'MusicPlaylist' ], |
|
165 | + 'isrcCode' => [ 'Text' ], |
|
166 | + 'recordingOf' => [ 'MusicComposition' ] |
|
167 | 167 | ]; |
168 | 168 | |
169 | 169 | /** |
@@ -238,9 +238,9 @@ discard block |
||
238 | 238 | { |
239 | 239 | $rules = parent::rules(); |
240 | 240 | $rules = array_merge($rules, [ |
241 | - [['byArtist','duration','inAlbum','inPlaylist','isrcCode','recordingOf'], 'validateJsonSchema'], |
|
242 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
243 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
241 | + [ [ 'byArtist', 'duration', 'inAlbum', 'inPlaylist', 'isrcCode', 'recordingOf' ], 'validateJsonSchema' ], |
|
242 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
243 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
244 | 244 | ]); |
245 | 245 | |
246 | 246 | 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 | // ========================================================================= |
@@ -143,10 +143,10 @@ discard block |
||
143 | 143 | * @var array |
144 | 144 | */ |
145 | 145 | static protected $_schemaPropertyExpectedTypes = [ |
146 | - 'dropoffLocation' => ['Place'], |
|
147 | - 'dropoffTime' => ['DateTime'], |
|
148 | - 'pickupLocation' => ['Place'], |
|
149 | - 'pickupTime' => ['DateTime'] |
|
146 | + 'dropoffLocation' => [ 'Place' ], |
|
147 | + 'dropoffTime' => [ 'DateTime' ], |
|
148 | + 'pickupLocation' => [ 'Place' ], |
|
149 | + 'pickupTime' => [ 'DateTime' ] |
|
150 | 150 | ]; |
151 | 151 | |
152 | 152 | /** |
@@ -219,9 +219,9 @@ discard block |
||
219 | 219 | { |
220 | 220 | $rules = parent::rules(); |
221 | 221 | $rules = array_merge($rules, [ |
222 | - [['dropoffLocation','dropoffTime','pickupLocation','pickupTime'], 'validateJsonSchema'], |
|
223 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
224 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
222 | + [ [ 'dropoffLocation', 'dropoffTime', 'pickupLocation', 'pickupTime' ], 'validateJsonSchema' ], |
|
223 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
224 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
225 | 225 | ]); |
226 | 226 | |
227 | 227 | 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(); |