@@ -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 | // ========================================================================= |
@@ -136,9 +136,9 @@ discard block |
||
136 | 136 | * @var array |
137 | 137 | */ |
138 | 138 | static protected $_schemaPropertyExpectedTypes = [ |
139 | - 'foodEstablishment' => ['FoodEstablishment','Place'], |
|
140 | - 'foodEvent' => ['FoodEvent'], |
|
141 | - 'recipe' => ['Recipe'] |
|
139 | + 'foodEstablishment' => [ 'FoodEstablishment', 'Place' ], |
|
140 | + 'foodEvent' => [ 'FoodEvent' ], |
|
141 | + 'recipe' => [ 'Recipe' ] |
|
142 | 142 | ]; |
143 | 143 | |
144 | 144 | /** |
@@ -210,9 +210,9 @@ discard block |
||
210 | 210 | { |
211 | 211 | $rules = parent::rules(); |
212 | 212 | $rules = array_merge($rules, [ |
213 | - [['foodEstablishment','foodEvent','recipe'], '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 | + [ [ 'foodEstablishment', 'foodEvent', 'recipe' ], '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(); |
@@ -63,35 +63,35 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @var array |
65 | 65 | */ |
66 | - static public $schemaPropertyNames = []; |
|
66 | + static public $schemaPropertyNames = [ ]; |
|
67 | 67 | |
68 | 68 | /** |
69 | 69 | * The Schema.org composed Property Expected Types |
70 | 70 | * |
71 | 71 | * @var array |
72 | 72 | */ |
73 | - static public $schemaPropertyExpectedTypes = []; |
|
73 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
74 | 74 | |
75 | 75 | /** |
76 | 76 | * The Schema.org composed Property Descriptions |
77 | 77 | * |
78 | 78 | * @var array |
79 | 79 | */ |
80 | - static public $schemaPropertyDescriptions = []; |
|
80 | + static public $schemaPropertyDescriptions = [ ]; |
|
81 | 81 | |
82 | 82 | /** |
83 | 83 | * The Schema.org composed Google Required Schema for this type |
84 | 84 | * |
85 | 85 | * @var array |
86 | 86 | */ |
87 | - static public $googleRequiredSchema = []; |
|
87 | + static public $googleRequiredSchema = [ ]; |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * The Schema.org composed Google Recommended Schema for this type |
91 | 91 | * |
92 | 92 | * @var array |
93 | 93 | */ |
94 | - static public $googleRecommendedSchema = []; |
|
94 | + static public $googleRecommendedSchema = [ ]; |
|
95 | 95 | |
96 | 96 | // Public Properties |
97 | 97 | // ========================================================================= |
@@ -166,12 +166,12 @@ discard block |
||
166 | 166 | * @var array |
167 | 167 | */ |
168 | 168 | static protected $_schemaPropertyExpectedTypes = [ |
169 | - 'currency' => ['Text'], |
|
170 | - 'maxValue' => ['Number'], |
|
171 | - 'minValue' => ['Number'], |
|
172 | - 'validFrom' => ['DateTime'], |
|
173 | - 'validThrough' => ['DateTime'], |
|
174 | - 'value' => ['Boolean','Number','StructuredValue','Text'] |
|
169 | + 'currency' => [ 'Text' ], |
|
170 | + 'maxValue' => [ 'Number' ], |
|
171 | + 'minValue' => [ 'Number' ], |
|
172 | + 'validFrom' => [ 'DateTime' ], |
|
173 | + 'validThrough' => [ 'DateTime' ], |
|
174 | + 'value' => [ 'Boolean', 'Number', 'StructuredValue', 'Text' ] |
|
175 | 175 | ]; |
176 | 176 | |
177 | 177 | /** |
@@ -246,9 +246,9 @@ discard block |
||
246 | 246 | { |
247 | 247 | $rules = parent::rules(); |
248 | 248 | $rules = array_merge($rules, [ |
249 | - [['currency','maxValue','minValue','validFrom','validThrough','value'], 'validateJsonSchema'], |
|
250 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
251 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
249 | + [ [ 'currency', 'maxValue', 'minValue', 'validFrom', 'validThrough', 'value' ], 'validateJsonSchema' ], |
|
250 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
251 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
252 | 252 | ]); |
253 | 253 | |
254 | 254 | 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 | // ========================================================================= |
@@ -135,9 +135,9 @@ discard block |
||
135 | 135 | * @var array |
136 | 136 | */ |
137 | 137 | static protected $_schemaPropertyExpectedTypes = [ |
138 | - 'aggregateRating' => ['AggregateRating'], |
|
139 | - 'logo' => ['ImageObject','URL'], |
|
140 | - 'review' => ['Review'] |
|
138 | + 'aggregateRating' => [ 'AggregateRating' ], |
|
139 | + 'logo' => [ 'ImageObject', 'URL' ], |
|
140 | + 'review' => [ 'Review' ] |
|
141 | 141 | ]; |
142 | 142 | |
143 | 143 | /** |
@@ -209,9 +209,9 @@ discard block |
||
209 | 209 | { |
210 | 210 | $rules = parent::rules(); |
211 | 211 | $rules = array_merge($rules, [ |
212 | - [['aggregateRating','logo','review'], 'validateJsonSchema'], |
|
213 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
214 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
212 | + [ [ 'aggregateRating', 'logo', 'review' ], 'validateJsonSchema' ], |
|
213 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
214 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
215 | 215 | ]); |
216 | 216 | |
217 | 217 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -59,35 +59,35 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @var array |
61 | 61 | */ |
62 | - static public $schemaPropertyNames = []; |
|
62 | + static public $schemaPropertyNames = [ ]; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * The Schema.org composed Property Expected Types |
66 | 66 | * |
67 | 67 | * @var array |
68 | 68 | */ |
69 | - static public $schemaPropertyExpectedTypes = []; |
|
69 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * The Schema.org composed Property Descriptions |
73 | 73 | * |
74 | 74 | * @var array |
75 | 75 | */ |
76 | - static public $schemaPropertyDescriptions = []; |
|
76 | + static public $schemaPropertyDescriptions = [ ]; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * The Schema.org composed Google Required Schema for this type |
80 | 80 | * |
81 | 81 | * @var array |
82 | 82 | */ |
83 | - static public $googleRequiredSchema = []; |
|
83 | + static public $googleRequiredSchema = [ ]; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * The Schema.org composed Google Recommended Schema for this type |
87 | 87 | * |
88 | 88 | * @var array |
89 | 89 | */ |
90 | - static public $googleRecommendedSchema = []; |
|
90 | + static public $googleRecommendedSchema = [ ]; |
|
91 | 91 | |
92 | 92 | // Public Properties |
93 | 93 | // ========================================================================= |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * @var array |
118 | 118 | */ |
119 | 119 | static protected $_schemaPropertyExpectedTypes = [ |
120 | - 'loser' => ['Person'] |
|
120 | + 'loser' => [ 'Person' ] |
|
121 | 121 | ]; |
122 | 122 | |
123 | 123 | /** |
@@ -187,9 +187,9 @@ discard block |
||
187 | 187 | { |
188 | 188 | $rules = parent::rules(); |
189 | 189 | $rules = array_merge($rules, [ |
190 | - [['loser'], 'validateJsonSchema'], |
|
191 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
192 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
190 | + [ [ 'loser' ], 'validateJsonSchema' ], |
|
191 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
192 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
193 | 193 | ]); |
194 | 194 | |
195 | 195 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -64,35 +64,35 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @var array |
66 | 66 | */ |
67 | - static public $schemaPropertyNames = []; |
|
67 | + static public $schemaPropertyNames = [ ]; |
|
68 | 68 | |
69 | 69 | /** |
70 | 70 | * The Schema.org composed Property Expected Types |
71 | 71 | * |
72 | 72 | * @var array |
73 | 73 | */ |
74 | - static public $schemaPropertyExpectedTypes = []; |
|
74 | + static public $schemaPropertyExpectedTypes = [ ]; |
|
75 | 75 | |
76 | 76 | /** |
77 | 77 | * The Schema.org composed Property Descriptions |
78 | 78 | * |
79 | 79 | * @var array |
80 | 80 | */ |
81 | - static public $schemaPropertyDescriptions = []; |
|
81 | + static public $schemaPropertyDescriptions = [ ]; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * The Schema.org composed Google Required Schema for this type |
85 | 85 | * |
86 | 86 | * @var array |
87 | 87 | */ |
88 | - static public $googleRequiredSchema = []; |
|
88 | + static public $googleRequiredSchema = [ ]; |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * The Schema.org composed Google Recommended Schema for this type |
92 | 92 | * |
93 | 93 | * @var array |
94 | 94 | */ |
95 | - static public $googleRecommendedSchema = []; |
|
95 | + static public $googleRecommendedSchema = [ ]; |
|
96 | 96 | |
97 | 97 | // Public Properties |
98 | 98 | // ========================================================================= |
@@ -152,10 +152,10 @@ discard block |
||
152 | 152 | * @var array |
153 | 153 | */ |
154 | 154 | static protected $_schemaPropertyExpectedTypes = [ |
155 | - 'courseCode' => ['Text'], |
|
156 | - 'coursePrerequisites' => ['AlignmentObject','Course','Text'], |
|
157 | - 'educationalCredentialAwarded' => ['Text','URL'], |
|
158 | - 'hasCourseInstance' => ['CourseInstance'] |
|
155 | + 'courseCode' => [ 'Text' ], |
|
156 | + 'coursePrerequisites' => [ 'AlignmentObject', 'Course', 'Text' ], |
|
157 | + 'educationalCredentialAwarded' => [ 'Text', 'URL' ], |
|
158 | + 'hasCourseInstance' => [ 'CourseInstance' ] |
|
159 | 159 | ]; |
160 | 160 | |
161 | 161 | /** |
@@ -228,9 +228,9 @@ discard block |
||
228 | 228 | { |
229 | 229 | $rules = parent::rules(); |
230 | 230 | $rules = array_merge($rules, [ |
231 | - [['courseCode','coursePrerequisites','educationalCredentialAwarded','hasCourseInstance'], 'validateJsonSchema'], |
|
232 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
233 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
231 | + [ [ 'courseCode', 'coursePrerequisites', 'educationalCredentialAwarded', 'hasCourseInstance' ], 'validateJsonSchema' ], |
|
232 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
233 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
234 | 234 | ]); |
235 | 235 | |
236 | 236 | 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 | // ========================================================================= |
@@ -151,11 +151,11 @@ discard block |
||
151 | 151 | * @var array |
152 | 152 | */ |
153 | 153 | static protected $_schemaPropertyExpectedTypes = [ |
154 | - 'orderDelivery' => ['ParcelDelivery'], |
|
155 | - 'orderItemNumber' => ['Text'], |
|
156 | - 'orderItemStatus' => ['OrderStatus'], |
|
157 | - 'orderQuantity' => ['Number'], |
|
158 | - 'orderedItem' => ['OrderItem','Product'] |
|
154 | + 'orderDelivery' => [ 'ParcelDelivery' ], |
|
155 | + 'orderItemNumber' => [ 'Text' ], |
|
156 | + 'orderItemStatus' => [ 'OrderStatus' ], |
|
157 | + 'orderQuantity' => [ 'Number' ], |
|
158 | + 'orderedItem' => [ 'OrderItem', 'Product' ] |
|
159 | 159 | ]; |
160 | 160 | |
161 | 161 | /** |
@@ -229,9 +229,9 @@ discard block |
||
229 | 229 | { |
230 | 230 | $rules = parent::rules(); |
231 | 231 | $rules = array_merge($rules, [ |
232 | - [['orderDelivery','orderItemNumber','orderItemStatus','orderQuantity','orderedItem'], 'validateJsonSchema'], |
|
233 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
234 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
232 | + [ [ 'orderDelivery', 'orderItemNumber', 'orderItemStatus', 'orderQuantity', 'orderedItem' ], 'validateJsonSchema' ], |
|
233 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
234 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
235 | 235 | ]); |
236 | 236 | |
237 | 237 | 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 | // ========================================================================= |
@@ -185,15 +185,15 @@ discard block |
||
185 | 185 | * @var array |
186 | 186 | */ |
187 | 187 | static protected $_schemaPropertyExpectedTypes = [ |
188 | - 'cookTime' => ['Duration'], |
|
189 | - 'cookingMethod' => ['Text'], |
|
190 | - 'nutrition' => ['NutritionInformation'], |
|
191 | - 'recipeCategory' => ['Text'], |
|
192 | - 'recipeCuisine' => ['Text'], |
|
193 | - 'recipeIngredient' => ['Text'], |
|
194 | - 'recipeInstructions' => ['CreativeWork','ItemList','Text'], |
|
195 | - 'recipeYield' => ['QuantitativeValue','Text'], |
|
196 | - 'suitableForDiet' => ['RestrictedDiet'] |
|
188 | + 'cookTime' => [ 'Duration' ], |
|
189 | + 'cookingMethod' => [ 'Text' ], |
|
190 | + 'nutrition' => [ 'NutritionInformation' ], |
|
191 | + 'recipeCategory' => [ 'Text' ], |
|
192 | + 'recipeCuisine' => [ 'Text' ], |
|
193 | + 'recipeIngredient' => [ 'Text' ], |
|
194 | + 'recipeInstructions' => [ 'CreativeWork', 'ItemList', 'Text' ], |
|
195 | + 'recipeYield' => [ 'QuantitativeValue', 'Text' ], |
|
196 | + 'suitableForDiet' => [ 'RestrictedDiet' ] |
|
197 | 197 | ]; |
198 | 198 | |
199 | 199 | /** |
@@ -271,9 +271,9 @@ discard block |
||
271 | 271 | { |
272 | 272 | $rules = parent::rules(); |
273 | 273 | $rules = array_merge($rules, [ |
274 | - [['cookTime','cookingMethod','nutrition','recipeCategory','recipeCuisine','recipeIngredient','recipeInstructions','recipeYield','suitableForDiet'], '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 | + [ [ 'cookTime', 'cookingMethod', 'nutrition', 'recipeCategory', 'recipeCuisine', 'recipeIngredient', 'recipeInstructions', 'recipeYield', 'suitableForDiet' ], '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(); |
@@ -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 | // ========================================================================= |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * @var array |
121 | 121 | */ |
122 | 122 | static protected $_schemaPropertyExpectedTypes = [ |
123 | - 'borrower' => ['Person'] |
|
123 | + 'borrower' => [ 'Person' ] |
|
124 | 124 | ]; |
125 | 125 | |
126 | 126 | /** |
@@ -190,9 +190,9 @@ discard block |
||
190 | 190 | { |
191 | 191 | $rules = parent::rules(); |
192 | 192 | $rules = array_merge($rules, [ |
193 | - [['borrower'], 'validateJsonSchema'], |
|
194 | - [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
195 | - [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
193 | + [ [ 'borrower' ], 'validateJsonSchema' ], |
|
194 | + [ self::$_googleRequiredSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is required by Google.' ], |
|
195 | + [ self::$_googleRecommendedSchema, 'required', 'on' => [ 'google' ], 'message' => 'This property is recommended by Google.' ] |
|
196 | 196 | ]); |
197 | 197 | |
198 | 198 | return $rules; |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | // ========================================================================= |
165 | 165 | |
166 | 166 | /** |
167 | - * @inheritdoc |
|
168 | - */ |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | 169 | public function init() |
170 | 170 | { |
171 | 171 | parent::init(); |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @inheritdoc |
|
200 | - */ |
|
199 | + * @inheritdoc |
|
200 | + */ |
|
201 | 201 | public function rules() |
202 | 202 | { |
203 | 203 | $rules = parent::rules(); |
@@ -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(); |