@@ -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 | - 'feesAndCommissionsSpecification' => ['Text','URL'] |
|
121 | + 'feesAndCommissionsSpecification' => [ 'Text', 'URL' ] |
|
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 | - [['feesAndCommissionsSpecification'], '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 | + [ [ 'feesAndCommissionsSpecification' ], '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 | // ========================================================================= |
@@ -161,12 +161,12 @@ discard block |
||
161 | 161 | * @var array |
162 | 162 | */ |
163 | 163 | static protected $_schemaPropertyExpectedTypes = [ |
164 | - 'catalogNumber' => ['Text'], |
|
165 | - 'creditedTo' => ['Organization','Person'], |
|
166 | - 'duration' => ['Duration'], |
|
167 | - 'musicReleaseFormat' => ['MusicReleaseFormatType'], |
|
168 | - 'recordLabel' => ['Organization'], |
|
169 | - 'releaseOf' => ['MusicAlbum'] |
|
164 | + 'catalogNumber' => [ 'Text' ], |
|
165 | + 'creditedTo' => [ 'Organization', 'Person' ], |
|
166 | + 'duration' => [ 'Duration' ], |
|
167 | + 'musicReleaseFormat' => [ 'MusicReleaseFormatType' ], |
|
168 | + 'recordLabel' => [ 'Organization' ], |
|
169 | + 'releaseOf' => [ 'MusicAlbum' ] |
|
170 | 170 | ]; |
171 | 171 | |
172 | 172 | /** |
@@ -241,9 +241,9 @@ discard block |
||
241 | 241 | { |
242 | 242 | $rules = parent::rules(); |
243 | 243 | $rules = array_merge($rules, [ |
244 | - [['catalogNumber','creditedTo','duration','musicReleaseFormat','recordLabel','releaseOf'], 'validateJsonSchema'], |
|
245 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
246 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
244 | + [ [ 'catalogNumber', 'creditedTo', 'duration', 'musicReleaseFormat', 'recordLabel', 'releaseOf' ], 'validateJsonSchema' ], |
|
245 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
246 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
247 | 247 | ]); |
248 | 248 | |
249 | 249 | 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 | - 'replacee' => ['Thing'], |
|
130 | - 'replacer' => ['Thing'] |
|
129 | + 'replacee' => [ 'Thing' ], |
|
130 | + 'replacer' => [ 'Thing' ] |
|
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 | - [['replacee','replacer'], '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 | + [ [ 'replacee', 'replacer' ], '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(); |
@@ -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 | // ========================================================================= |
@@ -136,8 +136,8 @@ discard block |
||
136 | 136 | * @var array |
137 | 137 | */ |
138 | 138 | static protected $_schemaPropertyExpectedTypes = [ |
139 | - 'price' => ['Number','Text'], |
|
140 | - 'priceSpecification' => ['PriceSpecification'] |
|
139 | + 'price' => [ 'Number', 'Text' ], |
|
140 | + 'priceSpecification' => [ 'PriceSpecification' ] |
|
141 | 141 | ]; |
142 | 142 | |
143 | 143 | /** |
@@ -208,9 +208,9 @@ discard block |
||
208 | 208 | { |
209 | 209 | $rules = parent::rules(); |
210 | 210 | $rules = array_merge($rules, [ |
211 | - [['price','priceSpecification'], 'validateJsonSchema'], |
|
212 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
213 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
211 | + [ [ 'price', 'priceSpecification' ], 'validateJsonSchema' ], |
|
212 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
213 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
214 | 214 | ]); |
215 | 215 | |
216 | 216 | 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(); |
@@ -67,35 +67,35 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @var array |
69 | 69 | */ |
70 | - static public $schemaPropertyNames = []; |
|
70 | + static public $schemaPropertyNames = [ ]; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * The Schema.org composed Property Expected Types |
74 | 74 | * |
75 | 75 | * @var array |
76 | 76 | */ |
77 | - static public $schemaPropertyExpectedTypes = []; |
|
77 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * The Schema.org composed Property Descriptions |
81 | 81 | * |
82 | 82 | * @var array |
83 | 83 | */ |
84 | - static public $schemaPropertyDescriptions = []; |
|
84 | + static public $schemaPropertyDescriptions = [ ]; |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | * The Schema.org composed Google Required Schema for this type |
88 | 88 | * |
89 | 89 | * @var array |
90 | 90 | */ |
91 | - static public $googleRequiredSchema = []; |
|
91 | + static public $googleRequiredSchema = [ ]; |
|
92 | 92 | |
93 | 93 | /** |
94 | 94 | * The Schema.org composed Google Recommended Schema for this type |
95 | 95 | * |
96 | 96 | * @var array |
97 | 97 | */ |
98 | - static public $googleRecommendedSchema = []; |
|
98 | + static public $googleRecommendedSchema = [ ]; |
|
99 | 99 | |
100 | 100 | // Public Properties |
101 | 101 | // ========================================================================= |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * @var array |
127 | 127 | */ |
128 | 128 | static protected $_schemaPropertyExpectedTypes = [ |
129 | - 'monthlyMinimumRepaymentAmount' => ['MonetaryAmount','Number'] |
|
129 | + 'monthlyMinimumRepaymentAmount' => [ 'MonetaryAmount', 'Number' ] |
|
130 | 130 | ]; |
131 | 131 | |
132 | 132 | /** |
@@ -196,9 +196,9 @@ discard block |
||
196 | 196 | { |
197 | 197 | $rules = parent::rules(); |
198 | 198 | $rules = array_merge($rules, [ |
199 | - [['monthlyMinimumRepaymentAmount'], 'validateJsonSchema'], |
|
200 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
201 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
199 | + [ [ 'monthlyMinimumRepaymentAmount' ], 'validateJsonSchema' ], |
|
200 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
201 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
202 | 202 | ]); |
203 | 203 | |
204 | 204 | 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 | // ========================================================================= |
@@ -180,14 +180,14 @@ discard block |
||
180 | 180 | * @var array |
181 | 181 | */ |
182 | 182 | static protected $_schemaPropertyExpectedTypes = [ |
183 | - 'broadcastAffiliateOf' => ['Organization'], |
|
184 | - 'broadcastDisplayName' => ['Text'], |
|
185 | - 'broadcastFrequency' => ['BroadcastFrequencySpecification','Text'], |
|
186 | - 'broadcastTimezone' => ['Text'], |
|
187 | - 'broadcaster' => ['Organization'], |
|
188 | - 'hasBroadcastChannel' => ['BroadcastChannel'], |
|
189 | - 'parentService' => ['BroadcastService'], |
|
190 | - 'videoFormat' => ['Text'] |
|
183 | + 'broadcastAffiliateOf' => [ 'Organization' ], |
|
184 | + 'broadcastDisplayName' => [ 'Text' ], |
|
185 | + 'broadcastFrequency' => [ 'BroadcastFrequencySpecification', 'Text' ], |
|
186 | + 'broadcastTimezone' => [ 'Text' ], |
|
187 | + 'broadcaster' => [ 'Organization' ], |
|
188 | + 'hasBroadcastChannel' => [ 'BroadcastChannel' ], |
|
189 | + 'parentService' => [ 'BroadcastService' ], |
|
190 | + 'videoFormat' => [ 'Text' ] |
|
191 | 191 | ]; |
192 | 192 | |
193 | 193 | /** |
@@ -264,9 +264,9 @@ discard block |
||
264 | 264 | { |
265 | 265 | $rules = parent::rules(); |
266 | 266 | $rules = array_merge($rules, [ |
267 | - [['broadcastAffiliateOf','broadcastDisplayName','broadcastFrequency','broadcastTimezone','broadcaster','hasBroadcastChannel','parentService','videoFormat'], 'validateJsonSchema'], |
|
268 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
269 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
267 | + [ [ 'broadcastAffiliateOf', 'broadcastDisplayName', 'broadcastFrequency', 'broadcastTimezone', 'broadcaster', 'hasBroadcastChannel', 'parentService', 'videoFormat' ], 'validateJsonSchema' ], |
|
268 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
269 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
270 | 270 | ]); |
271 | 271 | |
272 | 272 | 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 | // ========================================================================= |
@@ -142,10 +142,10 @@ discard block |
||
142 | 142 | * @var array |
143 | 143 | */ |
144 | 144 | static protected $_schemaPropertyExpectedTypes = [ |
145 | - 'albumProductionType' => ['MusicAlbumProductionType'], |
|
146 | - 'albumRelease' => ['MusicRelease'], |
|
147 | - 'albumReleaseType' => ['MusicAlbumReleaseType'], |
|
148 | - 'byArtist' => ['MusicGroup'] |
|
145 | + 'albumProductionType' => [ 'MusicAlbumProductionType' ], |
|
146 | + 'albumRelease' => [ 'MusicRelease' ], |
|
147 | + 'albumReleaseType' => [ 'MusicAlbumReleaseType' ], |
|
148 | + 'byArtist' => [ 'MusicGroup' ] |
|
149 | 149 | ]; |
150 | 150 | |
151 | 151 | /** |
@@ -218,9 +218,9 @@ discard block |
||
218 | 218 | { |
219 | 219 | $rules = parent::rules(); |
220 | 220 | $rules = array_merge($rules, [ |
221 | - [['albumProductionType','albumRelease','albumReleaseType','byArtist'], 'validateJsonSchema'], |
|
222 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
223 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
221 | + [ [ 'albumProductionType', 'albumRelease', 'albumReleaseType', 'byArtist' ], 'validateJsonSchema' ], |
|
222 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
223 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
224 | 224 | ]); |
225 | 225 | |
226 | 226 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -60,35 +60,35 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @var array |
62 | 62 | */ |
63 | - static public $schemaPropertyNames = []; |
|
63 | + static public $schemaPropertyNames = [ ]; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * The Schema.org composed Property Expected Types |
67 | 67 | * |
68 | 68 | * @var array |
69 | 69 | */ |
70 | - static public $schemaPropertyExpectedTypes = []; |
|
70 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * The Schema.org composed Property Descriptions |
74 | 74 | * |
75 | 75 | * @var array |
76 | 76 | */ |
77 | - static public $schemaPropertyDescriptions = []; |
|
77 | + static public $schemaPropertyDescriptions = [ ]; |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * The Schema.org composed Google Required Schema for this type |
81 | 81 | * |
82 | 82 | * @var array |
83 | 83 | */ |
84 | - static public $googleRequiredSchema = []; |
|
84 | + static public $googleRequiredSchema = [ ]; |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | * The Schema.org composed Google Recommended Schema for this type |
88 | 88 | * |
89 | 89 | * @var array |
90 | 90 | */ |
91 | - static public $googleRecommendedSchema = []; |
|
91 | + static public $googleRecommendedSchema = [ ]; |
|
92 | 92 | |
93 | 93 | // Public Properties |
94 | 94 | // ========================================================================= |
@@ -177,14 +177,14 @@ discard block |
||
177 | 177 | * @var array |
178 | 178 | */ |
179 | 179 | static protected $_schemaPropertyExpectedTypes = [ |
180 | - 'availableLanguage' => ['Language','Text'], |
|
181 | - 'processingTime' => ['Duration'], |
|
182 | - 'providesService' => ['Service'], |
|
183 | - 'serviceLocation' => ['Place'], |
|
184 | - 'servicePhone' => ['ContactPoint'], |
|
185 | - 'servicePostalAddress' => ['PostalAddress'], |
|
186 | - 'serviceSmsNumber' => ['ContactPoint'], |
|
187 | - 'serviceUrl' => ['URL'] |
|
180 | + 'availableLanguage' => [ 'Language', 'Text' ], |
|
181 | + 'processingTime' => [ 'Duration' ], |
|
182 | + 'providesService' => [ 'Service' ], |
|
183 | + 'serviceLocation' => [ 'Place' ], |
|
184 | + 'servicePhone' => [ 'ContactPoint' ], |
|
185 | + 'servicePostalAddress' => [ 'PostalAddress' ], |
|
186 | + 'serviceSmsNumber' => [ 'ContactPoint' ], |
|
187 | + 'serviceUrl' => [ 'URL' ] |
|
188 | 188 | ]; |
189 | 189 | |
190 | 190 | /** |
@@ -261,9 +261,9 @@ discard block |
||
261 | 261 | { |
262 | 262 | $rules = parent::rules(); |
263 | 263 | $rules = array_merge($rules, [ |
264 | - [['availableLanguage','processingTime','providesService','serviceLocation','servicePhone','servicePostalAddress','serviceSmsNumber','serviceUrl'], '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 | + [ [ 'availableLanguage', 'processingTime', 'providesService', 'serviceLocation', 'servicePhone', 'servicePostalAddress', 'serviceSmsNumber', 'serviceUrl' ], '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(); |
@@ -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 | // ========================================================================= |
@@ -187,14 +187,14 @@ discard block |
||
187 | 187 | * @var array |
188 | 188 | */ |
189 | 189 | static protected $_schemaPropertyExpectedTypes = [ |
190 | - 'additionalProperty' => ['PropertyValue'], |
|
191 | - 'equal' => ['QualitativeValue'], |
|
192 | - 'greater' => ['QualitativeValue'], |
|
193 | - 'greaterOrEqual' => ['QualitativeValue'], |
|
194 | - 'lesser' => ['QualitativeValue'], |
|
195 | - 'lesserOrEqual' => ['QualitativeValue'], |
|
196 | - 'nonEqual' => ['QualitativeValue'], |
|
197 | - 'valueReference' => ['Enumeration','PropertyValue','QualitativeValue','QuantitativeValue','StructuredValue'] |
|
190 | + 'additionalProperty' => [ 'PropertyValue' ], |
|
191 | + 'equal' => [ 'QualitativeValue' ], |
|
192 | + 'greater' => [ 'QualitativeValue' ], |
|
193 | + 'greaterOrEqual' => [ 'QualitativeValue' ], |
|
194 | + 'lesser' => [ 'QualitativeValue' ], |
|
195 | + 'lesserOrEqual' => [ 'QualitativeValue' ], |
|
196 | + 'nonEqual' => [ 'QualitativeValue' ], |
|
197 | + 'valueReference' => [ 'Enumeration', 'PropertyValue', 'QualitativeValue', 'QuantitativeValue', 'StructuredValue' ] |
|
198 | 198 | ]; |
199 | 199 | |
200 | 200 | /** |
@@ -271,9 +271,9 @@ discard block |
||
271 | 271 | { |
272 | 272 | $rules = parent::rules(); |
273 | 273 | $rules = array_merge($rules, [ |
274 | - [['additionalProperty','equal','greater','greaterOrEqual','lesser','lesserOrEqual','nonEqual','valueReference'], 'validateJsonSchema'], |
|
275 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
276 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
274 | + [ [ 'additionalProperty', 'equal', 'greater', 'greaterOrEqual', 'lesser', 'lesserOrEqual', 'nonEqual', 'valueReference' ], 'validateJsonSchema' ], |
|
275 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
276 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
277 | 277 | ]); |
278 | 278 | |
279 | 279 | 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(); |