@@ -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 | // ========================================================================= |
@@ -130,8 +130,8 @@ discard block |
||
130 | 130 | * @var array |
131 | 131 | */ |
132 | 132 | static protected $_schemaPropertyExpectedTypes = [ |
133 | - 'numberOfBeds' => ['Number'], |
|
134 | - 'typeOfBed' => ['BedType','Text'] |
|
133 | + 'numberOfBeds' => [ 'Number' ], |
|
134 | + 'typeOfBed' => [ 'BedType', 'Text' ] |
|
135 | 135 | ]; |
136 | 136 | |
137 | 137 | /** |
@@ -202,9 +202,9 @@ discard block |
||
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
204 | 204 | $rules = array_merge($rules, [ |
205 | - [['numberOfBeds','typeOfBed'], 'validateJsonSchema'], |
|
206 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
207 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
205 | + [ [ 'numberOfBeds', 'typeOfBed' ], 'validateJsonSchema' ], |
|
206 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
207 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
208 | 208 | ]); |
209 | 209 | |
210 | 210 | 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 | // ========================================================================= |
@@ -138,8 +138,8 @@ discard block |
||
138 | 138 | * @var array |
139 | 139 | */ |
140 | 140 | static protected $_schemaPropertyExpectedTypes = [ |
141 | - 'dataset' => ['Dataset'], |
|
142 | - 'measurementTechnique' => ['Text','URL'] |
|
141 | + 'dataset' => [ 'Dataset' ], |
|
142 | + 'measurementTechnique' => [ 'Text', 'URL' ] |
|
143 | 143 | ]; |
144 | 144 | |
145 | 145 | /** |
@@ -210,9 +210,9 @@ discard block |
||
210 | 210 | { |
211 | 211 | $rules = parent::rules(); |
212 | 212 | $rules = array_merge($rules, [ |
213 | - [['dataset','measurementTechnique'], 'validateJsonSchema'], |
|
214 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
215 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
213 | + [ [ 'dataset', 'measurementTechnique' ], 'validateJsonSchema' ], |
|
214 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
215 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
216 | 216 | ]); |
217 | 217 | |
218 | 218 | 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 | // ========================================================================= |
@@ -178,14 +178,14 @@ discard block |
||
178 | 178 | * @var array |
179 | 179 | */ |
180 | 180 | static protected $_schemaPropertyExpectedTypes = [ |
181 | - 'actor' => ['Person'], |
|
182 | - 'caption' => ['Text'], |
|
183 | - 'director' => ['Person'], |
|
184 | - 'musicBy' => ['MusicGroup','Person'], |
|
185 | - 'thumbnail' => ['ImageObject'], |
|
186 | - 'transcript' => ['Text'], |
|
187 | - 'videoFrameSize' => ['Text'], |
|
188 | - 'videoQuality' => ['Text'] |
|
181 | + 'actor' => [ 'Person' ], |
|
182 | + 'caption' => [ 'Text' ], |
|
183 | + 'director' => [ 'Person' ], |
|
184 | + 'musicBy' => [ 'MusicGroup', 'Person' ], |
|
185 | + 'thumbnail' => [ 'ImageObject' ], |
|
186 | + 'transcript' => [ 'Text' ], |
|
187 | + 'videoFrameSize' => [ 'Text' ], |
|
188 | + 'videoQuality' => [ 'Text' ] |
|
189 | 189 | ]; |
190 | 190 | |
191 | 191 | /** |
@@ -262,9 +262,9 @@ discard block |
||
262 | 262 | { |
263 | 263 | $rules = parent::rules(); |
264 | 264 | $rules = array_merge($rules, [ |
265 | - [['actor','caption','director','musicBy','thumbnail','transcript','videoFrameSize','videoQuality'], 'validateJsonSchema'], |
|
266 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
267 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
265 | + [ [ 'actor', 'caption', 'director', 'musicBy', 'thumbnail', 'transcript', 'videoFrameSize', 'videoQuality' ], 'validateJsonSchema' ], |
|
266 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
267 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
268 | 268 | ]); |
269 | 269 | |
270 | 270 | 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 | - 'transcript' => ['Text'] |
|
121 | + 'transcript' => [ '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 | - [['transcript'], '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 | + [ [ 'transcript' ], '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(); |
@@ -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 | // ========================================================================= |
@@ -133,8 +133,8 @@ discard block |
||
133 | 133 | * @var array |
134 | 134 | */ |
135 | 135 | static protected $_schemaPropertyExpectedTypes = [ |
136 | - 'audience' => ['Audience'], |
|
137 | - 'event' => ['Event'] |
|
136 | + 'audience' => [ 'Audience' ], |
|
137 | + 'event' => [ 'Event' ] |
|
138 | 138 | ]; |
139 | 139 | |
140 | 140 | /** |
@@ -205,9 +205,9 @@ discard block |
||
205 | 205 | { |
206 | 206 | $rules = parent::rules(); |
207 | 207 | $rules = array_merge($rules, [ |
208 | - [['audience','event'], 'validateJsonSchema'], |
|
209 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
210 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
208 | + [ [ 'audience', 'event' ], 'validateJsonSchema' ], |
|
209 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
210 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
211 | 211 | ]); |
212 | 212 | |
213 | 213 | 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 | // ========================================================================= |
@@ -167,13 +167,13 @@ discard block |
||
167 | 167 | * @var array |
168 | 168 | */ |
169 | 169 | static protected $_schemaPropertyExpectedTypes = [ |
170 | - 'healthCondition' => ['MedicalCondition'], |
|
171 | - 'requiredGender' => ['Text'], |
|
172 | - 'requiredMaxAge' => ['Integer'], |
|
173 | - 'requiredMinAge' => ['Integer'], |
|
174 | - 'suggestedGender' => ['Text'], |
|
175 | - 'suggestedMaxAge' => ['Number'], |
|
176 | - 'suggestedMinAge' => ['Number'] |
|
170 | + 'healthCondition' => [ 'MedicalCondition' ], |
|
171 | + 'requiredGender' => [ 'Text' ], |
|
172 | + 'requiredMaxAge' => [ 'Integer' ], |
|
173 | + 'requiredMinAge' => [ 'Integer' ], |
|
174 | + 'suggestedGender' => [ 'Text' ], |
|
175 | + 'suggestedMaxAge' => [ 'Number' ], |
|
176 | + 'suggestedMinAge' => [ 'Number' ] |
|
177 | 177 | ]; |
178 | 178 | |
179 | 179 | /** |
@@ -249,9 +249,9 @@ discard block |
||
249 | 249 | { |
250 | 250 | $rules = parent::rules(); |
251 | 251 | $rules = array_merge($rules, [ |
252 | - [['healthCondition','requiredGender','requiredMaxAge','requiredMinAge','suggestedGender','suggestedMaxAge','suggestedMinAge'], 'validateJsonSchema'], |
|
253 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
254 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
252 | + [ [ 'healthCondition', 'requiredGender', 'requiredMaxAge', 'requiredMinAge', 'suggestedGender', 'suggestedMaxAge', 'suggestedMinAge' ], 'validateJsonSchema' ], |
|
253 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
254 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
255 | 255 | ]); |
256 | 256 | |
257 | 257 | 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 | // ========================================================================= |
@@ -157,11 +157,11 @@ discard block |
||
157 | 157 | * @var array |
158 | 158 | */ |
159 | 159 | static protected $_schemaPropertyExpectedTypes = [ |
160 | - 'dateline' => ['Text'], |
|
161 | - 'printColumn' => ['Text'], |
|
162 | - 'printEdition' => ['Text'], |
|
163 | - 'printPage' => ['Text'], |
|
164 | - 'printSection' => ['Text'] |
|
160 | + 'dateline' => [ 'Text' ], |
|
161 | + 'printColumn' => [ 'Text' ], |
|
162 | + 'printEdition' => [ 'Text' ], |
|
163 | + 'printPage' => [ 'Text' ], |
|
164 | + 'printSection' => [ 'Text' ] |
|
165 | 165 | ]; |
166 | 166 | |
167 | 167 | /** |
@@ -242,9 +242,9 @@ discard block |
||
242 | 242 | { |
243 | 243 | $rules = parent::rules(); |
244 | 244 | $rules = array_merge($rules, [ |
245 | - [['dateline','printColumn','printEdition','printPage','printSection'], 'validateJsonSchema'], |
|
246 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
247 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
245 | + [ [ 'dateline', 'printColumn', 'printEdition', 'printPage', 'printSection' ], 'validateJsonSchema' ], |
|
246 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
247 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
248 | 248 | ]); |
249 | 249 | |
250 | 250 | 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 | // ========================================================================= |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | * @var array |
126 | 126 | */ |
127 | 127 | static protected $_schemaPropertyExpectedTypes = [ |
128 | - 'iataCode' => ['Text'], |
|
129 | - 'icaoCode' => ['Text'] |
|
128 | + 'iataCode' => [ 'Text' ], |
|
129 | + 'icaoCode' => [ 'Text' ] |
|
130 | 130 | ]; |
131 | 131 | |
132 | 132 | /** |
@@ -197,9 +197,9 @@ discard block |
||
197 | 197 | { |
198 | 198 | $rules = parent::rules(); |
199 | 199 | $rules = array_merge($rules, [ |
200 | - [['iataCode','icaoCode'], 'validateJsonSchema'], |
|
201 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
202 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
200 | + [ [ 'iataCode', 'icaoCode' ], 'validateJsonSchema' ], |
|
201 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
202 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
203 | 203 | ]); |
204 | 204 | |
205 | 205 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -60,35 +60,35 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @var array |
62 | 62 | */ |
63 | - static public $schemaPropertyNames = []; |
|
63 | + static public $schemaPropertyNames = [ ]; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * The Schema.org composed Property Expected Types |
67 | 67 | * |
68 | 68 | * @var array |
69 | 69 | */ |
70 | - static public $schemaPropertyExpectedTypes = []; |
|
70 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * The Schema.org composed Property Descriptions |
74 | 74 | * |
75 | 75 | * @var array |
76 | 76 | */ |
77 | - static public $schemaPropertyDescriptions = []; |
|
77 | + static public $schemaPropertyDescriptions = [ ]; |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * The Schema.org composed Google Required Schema for this type |
81 | 81 | * |
82 | 82 | * @var array |
83 | 83 | */ |
84 | - static public $googleRequiredSchema = []; |
|
84 | + static public $googleRequiredSchema = [ ]; |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | * The Schema.org composed Google Recommended Schema for this type |
88 | 88 | * |
89 | 89 | * @var array |
90 | 90 | */ |
91 | - static public $googleRecommendedSchema = []; |
|
91 | + static public $googleRecommendedSchema = [ ]; |
|
92 | 92 | |
93 | 93 | // Public Properties |
94 | 94 | // ========================================================================= |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * @var array |
119 | 119 | */ |
120 | 120 | static protected $_schemaPropertyExpectedTypes = [ |
121 | - 'claimReviewed' => ['Text'] |
|
121 | + 'claimReviewed' => [ '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 | - [['claimReviewed'], '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 | + [ [ 'claimReviewed' ], '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(); |