@@ -65,35 +65,35 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @var array |
67 | 67 | */ |
68 | - static public $schemaPropertyNames = []; |
|
68 | + static public $schemaPropertyNames = [ ]; |
|
69 | 69 | |
70 | 70 | /** |
71 | 71 | * The Schema.org composed Property Expected Types |
72 | 72 | * |
73 | 73 | * @var array |
74 | 74 | */ |
75 | - static public $schemaPropertyExpectedTypes = []; |
|
75 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
76 | 76 | |
77 | 77 | /** |
78 | 78 | * The Schema.org composed Property Descriptions |
79 | 79 | * |
80 | 80 | * @var array |
81 | 81 | */ |
82 | - static public $schemaPropertyDescriptions = []; |
|
82 | + static public $schemaPropertyDescriptions = [ ]; |
|
83 | 83 | |
84 | 84 | /** |
85 | 85 | * The Schema.org composed Google Required Schema for this type |
86 | 86 | * |
87 | 87 | * @var array |
88 | 88 | */ |
89 | - static public $googleRequiredSchema = []; |
|
89 | + static public $googleRequiredSchema = [ ]; |
|
90 | 90 | |
91 | 91 | /** |
92 | 92 | * The Schema.org composed Google Recommended Schema for this type |
93 | 93 | * |
94 | 94 | * @var array |
95 | 95 | */ |
96 | - static public $googleRecommendedSchema = []; |
|
96 | + static public $googleRecommendedSchema = [ ]; |
|
97 | 97 | |
98 | 98 | // Public Properties |
99 | 99 | // ========================================================================= |
@@ -206,14 +206,14 @@ discard block |
||
206 | 206 | * @var array |
207 | 207 | */ |
208 | 208 | static protected $_schemaPropertyExpectedTypes = [ |
209 | - 'maxValue' => ['Number'], |
|
210 | - 'measurementTechnique' => ['Text','URL'], |
|
211 | - 'minValue' => ['Number'], |
|
212 | - 'propertyID' => ['Text','URL'], |
|
213 | - 'unitCode' => ['Text','URL'], |
|
214 | - 'unitText' => ['Text'], |
|
215 | - 'value' => ['Boolean','Number','StructuredValue','Text'], |
|
216 | - 'valueReference' => ['Enumeration','PropertyValue','QualitativeValue','QuantitativeValue','StructuredValue'] |
|
209 | + 'maxValue' => [ 'Number' ], |
|
210 | + 'measurementTechnique' => [ 'Text', 'URL' ], |
|
211 | + 'minValue' => [ 'Number' ], |
|
212 | + 'propertyID' => [ 'Text', 'URL' ], |
|
213 | + 'unitCode' => [ 'Text', 'URL' ], |
|
214 | + 'unitText' => [ 'Text' ], |
|
215 | + 'value' => [ 'Boolean', 'Number', 'StructuredValue', 'Text' ], |
|
216 | + 'valueReference' => [ 'Enumeration', 'PropertyValue', 'QualitativeValue', 'QuantitativeValue', 'StructuredValue' ] |
|
217 | 217 | ]; |
218 | 218 | |
219 | 219 | /** |
@@ -290,9 +290,9 @@ discard block |
||
290 | 290 | { |
291 | 291 | $rules = parent::rules(); |
292 | 292 | $rules = array_merge($rules, [ |
293 | - [['maxValue','measurementTechnique','minValue','propertyID','unitCode','unitText','value','valueReference'], 'validateJsonSchema'], |
|
294 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
295 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
293 | + [ [ 'maxValue', 'measurementTechnique', 'minValue', 'propertyID', 'unitCode', 'unitText', 'value', 'valueReference' ], 'validateJsonSchema' ], |
|
294 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
295 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
296 | 296 | ]); |
297 | 297 | |
298 | 298 | 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 | - 'browserRequirements' => ['Text'] |
|
121 | + 'browserRequirements' => [ '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 | - [['browserRequirements'], '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 | + [ [ 'browserRequirements' ], '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(); |
@@ -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 | // ========================================================================= |
@@ -180,9 +180,9 @@ discard block |
||
180 | 180 | { |
181 | 181 | $rules = parent::rules(); |
182 | 182 | $rules = array_merge($rules, [ |
183 | - [[], 'validateJsonSchema'], |
|
184 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
185 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
183 | + [ [ ], 'validateJsonSchema' ], |
|
184 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
185 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
186 | 186 | ]); |
187 | 187 | |
188 | 188 | 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 | // ========================================================================= |
@@ -186,15 +186,15 @@ discard block |
||
186 | 186 | * @var array |
187 | 187 | */ |
188 | 188 | static protected $_schemaPropertyExpectedTypes = [ |
189 | - 'bccRecipient' => ['ContactPoint','Organization','Person'], |
|
190 | - 'ccRecipient' => ['ContactPoint','Organization','Person'], |
|
191 | - 'dateRead' => ['DateTime'], |
|
192 | - 'dateReceived' => ['DateTime'], |
|
193 | - 'dateSent' => ['DateTime'], |
|
194 | - 'messageAttachment' => ['CreativeWork'], |
|
195 | - 'recipient' => ['Audience','ContactPoint','Organization','Person'], |
|
196 | - 'sender' => ['Audience','Organization','Person'], |
|
197 | - 'toRecipient' => ['Audience','ContactPoint','Organization','Person'] |
|
189 | + 'bccRecipient' => [ 'ContactPoint', 'Organization', 'Person' ], |
|
190 | + 'ccRecipient' => [ 'ContactPoint', 'Organization', 'Person' ], |
|
191 | + 'dateRead' => [ 'DateTime' ], |
|
192 | + 'dateReceived' => [ 'DateTime' ], |
|
193 | + 'dateSent' => [ 'DateTime' ], |
|
194 | + 'messageAttachment' => [ 'CreativeWork' ], |
|
195 | + 'recipient' => [ 'Audience', 'ContactPoint', 'Organization', 'Person' ], |
|
196 | + 'sender' => [ 'Audience', 'Organization', 'Person' ], |
|
197 | + 'toRecipient' => [ 'Audience', 'ContactPoint', 'Organization', 'Person' ] |
|
198 | 198 | ]; |
199 | 199 | |
200 | 200 | /** |
@@ -272,9 +272,9 @@ discard block |
||
272 | 272 | { |
273 | 273 | $rules = parent::rules(); |
274 | 274 | $rules = array_merge($rules, [ |
275 | - [['bccRecipient','ccRecipient','dateRead','dateReceived','dateSent','messageAttachment','recipient','sender','toRecipient'], 'validateJsonSchema'], |
|
276 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
277 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
275 | + [ [ 'bccRecipient', 'ccRecipient', 'dateRead', 'dateReceived', 'dateSent', 'messageAttachment', 'recipient', 'sender', 'toRecipient' ], 'validateJsonSchema' ], |
|
276 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
277 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
278 | 278 | ]); |
279 | 279 | |
280 | 280 | 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 | // ========================================================================= |
@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | * @var array |
127 | 127 | */ |
128 | 128 | static protected $_schemaPropertyExpectedTypes = [ |
129 | - 'hasMenuItem' => ['MenuItem'], |
|
130 | - 'hasMenuSection' => ['MenuSection'] |
|
129 | + 'hasMenuItem' => [ 'MenuItem' ], |
|
130 | + 'hasMenuSection' => [ 'MenuSection' ] |
|
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 | - [['hasMenuItem','hasMenuSection'], '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 | + [ [ 'hasMenuItem', 'hasMenuSection' ], '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 | // ========================================================================= |
@@ -203,15 +203,15 @@ discard block |
||
203 | 203 | * @var array |
204 | 204 | */ |
205 | 205 | static protected $_schemaPropertyExpectedTypes = [ |
206 | - 'breadcrumb' => ['BreadcrumbList','Text'], |
|
207 | - 'lastReviewed' => ['Date'], |
|
208 | - 'mainContentOfPage' => ['WebPageElement'], |
|
209 | - 'primaryImageOfPage' => ['ImageObject'], |
|
210 | - 'relatedLink' => ['URL'], |
|
211 | - 'reviewedBy' => ['Organization','Person'], |
|
212 | - 'significantLink' => ['URL'], |
|
213 | - 'speakable' => ['SpeakableSpecification','URL'], |
|
214 | - 'specialty' => ['Specialty'] |
|
206 | + 'breadcrumb' => [ 'BreadcrumbList', 'Text' ], |
|
207 | + 'lastReviewed' => [ 'Date' ], |
|
208 | + 'mainContentOfPage' => [ 'WebPageElement' ], |
|
209 | + 'primaryImageOfPage' => [ 'ImageObject' ], |
|
210 | + 'relatedLink' => [ 'URL' ], |
|
211 | + 'reviewedBy' => [ 'Organization', 'Person' ], |
|
212 | + 'significantLink' => [ 'URL' ], |
|
213 | + 'speakable' => [ 'SpeakableSpecification', 'URL' ], |
|
214 | + 'specialty' => [ 'Specialty' ] |
|
215 | 215 | ]; |
216 | 216 | |
217 | 217 | /** |
@@ -289,9 +289,9 @@ discard block |
||
289 | 289 | { |
290 | 290 | $rules = parent::rules(); |
291 | 291 | $rules = array_merge($rules, [ |
292 | - [['breadcrumb','lastReviewed','mainContentOfPage','primaryImageOfPage','relatedLink','reviewedBy','significantLink','speakable','specialty'], 'validateJsonSchema'], |
|
293 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
294 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
292 | + [ [ 'breadcrumb', 'lastReviewed', 'mainContentOfPage', 'primaryImageOfPage', 'relatedLink', 'reviewedBy', 'significantLink', 'speakable', 'specialty' ], 'validateJsonSchema' ], |
|
293 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
294 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
295 | 295 | ]); |
296 | 296 | |
297 | 297 | 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 | - 'targetCollection' => ['Thing'] |
|
122 | + 'targetCollection' => [ '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 | - [['targetCollection'], '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 | + [ [ 'targetCollection' ], '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 | // ========================================================================= |
@@ -133,9 +133,9 @@ discard block |
||
133 | 133 | * @var array |
134 | 134 | */ |
135 | 135 | static protected $_schemaPropertyExpectedTypes = [ |
136 | - 'awayTeam' => ['Person','SportsTeam'], |
|
137 | - 'competitor' => ['Person','SportsTeam'], |
|
138 | - 'homeTeam' => ['Person','SportsTeam'] |
|
136 | + 'awayTeam' => [ 'Person', 'SportsTeam' ], |
|
137 | + 'competitor' => [ 'Person', 'SportsTeam' ], |
|
138 | + 'homeTeam' => [ 'Person', 'SportsTeam' ] |
|
139 | 139 | ]; |
140 | 140 | |
141 | 141 | /** |
@@ -207,9 +207,9 @@ discard block |
||
207 | 207 | { |
208 | 208 | $rules = parent::rules(); |
209 | 209 | $rules = array_merge($rules, [ |
210 | - [['awayTeam','competitor','homeTeam'], 'validateJsonSchema'], |
|
211 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
212 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
210 | + [ [ 'awayTeam', 'competitor', 'homeTeam' ], 'validateJsonSchema' ], |
|
211 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
212 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
213 | 213 | ]); |
214 | 214 | |
215 | 215 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -60,35 +60,35 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @var array |
62 | 62 | */ |
63 | - static public $schemaPropertyNames = []; |
|
63 | + static public $schemaPropertyNames = [ ]; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * The Schema.org composed Property Expected Types |
67 | 67 | * |
68 | 68 | * @var array |
69 | 69 | */ |
70 | - static public $schemaPropertyExpectedTypes = []; |
|
70 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * The Schema.org composed Property Descriptions |
74 | 74 | * |
75 | 75 | * @var array |
76 | 76 | */ |
77 | - static public $schemaPropertyDescriptions = []; |
|
77 | + static public $schemaPropertyDescriptions = [ ]; |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * The Schema.org composed Google Required Schema for this type |
81 | 81 | * |
82 | 82 | * @var array |
83 | 83 | */ |
84 | - static public $googleRequiredSchema = []; |
|
84 | + static public $googleRequiredSchema = [ ]; |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | * The Schema.org composed Google Recommended Schema for this type |
88 | 88 | * |
89 | 89 | * @var array |
90 | 90 | */ |
91 | - static public $googleRecommendedSchema = []; |
|
91 | + static public $googleRecommendedSchema = [ ]; |
|
92 | 92 | |
93 | 93 | // Public Properties |
94 | 94 | // ========================================================================= |
@@ -139,9 +139,9 @@ discard block |
||
139 | 139 | * @var array |
140 | 140 | */ |
141 | 141 | static protected $_schemaPropertyExpectedTypes = [ |
142 | - 'annualPercentageRate' => ['Number','QuantitativeValue'], |
|
143 | - 'feesAndCommissionsSpecification' => ['Text','URL'], |
|
144 | - 'interestRate' => ['Number','QuantitativeValue'] |
|
142 | + 'annualPercentageRate' => [ 'Number', 'QuantitativeValue' ], |
|
143 | + 'feesAndCommissionsSpecification' => [ 'Text', 'URL' ], |
|
144 | + 'interestRate' => [ 'Number', 'QuantitativeValue' ] |
|
145 | 145 | ]; |
146 | 146 | |
147 | 147 | /** |
@@ -213,9 +213,9 @@ discard block |
||
213 | 213 | { |
214 | 214 | $rules = parent::rules(); |
215 | 215 | $rules = array_merge($rules, [ |
216 | - [['annualPercentageRate','feesAndCommissionsSpecification','interestRate'], 'validateJsonSchema'], |
|
217 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
218 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
216 | + [ [ 'annualPercentageRate', 'feesAndCommissionsSpecification', 'interestRate' ], 'validateJsonSchema' ], |
|
217 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
218 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
219 | 219 | ]); |
220 | 220 | |
221 | 221 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |