Passed
Pull Request — v3 (#436)
by Ben
07:13
created
src/models/jsonld/AggregateOffer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -145,8 +145,8 @@  discard block
 block discarded – undo
145 145
      * @var array
146 146
      */
147 147
     static protected $_schemaPropertyExpectedTypes = [
148
-        'highPrice' => ['Number','Text'],
149
-        'lowPrice' => ['Number','Text'],
148
+        'highPrice' => ['Number', 'Text'],
149
+        'lowPrice' => ['Number', 'Text'],
150 150
         'offerCount' => ['Integer'],
151 151
         'offers' => ['Offer']
152 152
     ];
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     {
222 222
         $rules = parent::rules();
223 223
         $rules = array_merge($rules, [
224
-            [['highPrice','lowPrice','offerCount','offers'], 'validateJsonSchema'],
224
+            [['highPrice', 'lowPrice', 'offerCount', 'offers'], 'validateJsonSchema'],
225 225
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
226 226
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
227 227
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/LiveBlogPosting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
213 213
     {
214 214
         $rules = parent::rules();
215 215
         $rules = array_merge($rules, [
216
-            [['coverageEndTime','coverageStartTime','liveBlogUpdate'], 'validateJsonSchema'],
216
+            [['coverageEndTime', 'coverageStartTime', 'liveBlogUpdate'], 'validateJsonSchema'],
217 217
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
218 218
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
219 219
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/PlayAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
     {
206 206
         $rules = parent::rules();
207 207
         $rules = array_merge($rules, [
208
-            [['audience','event'], 'validateJsonSchema'],
208
+            [['audience', 'event'], 'validateJsonSchema'],
209 209
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
210 210
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
211 211
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/DeliveryEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@
 block discarded – undo
217 217
     {
218 218
         $rules = parent::rules();
219 219
         $rules = array_merge($rules, [
220
-            [['accessCode','availableFrom','availableThrough','hasDeliveryMethod'], 'validateJsonSchema'],
220
+            [['accessCode', 'availableFrom', 'availableThrough', 'hasDeliveryMethod'], 'validateJsonSchema'],
221 221
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
222 222
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
223 223
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/Dataset.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,8 +171,8 @@  discard block
 block discarded – undo
171 171
         'distribution' => ['DataDownload'],
172 172
         'includedInDataCatalog' => ['DataCatalog'],
173 173
         'issn' => ['Text'],
174
-        'measurementTechnique' => ['Text','URL'],
175
-        'variableMeasured' => ['PropertyValue','Text']
174
+        'measurementTechnique' => ['Text', 'URL'],
175
+        'variableMeasured' => ['PropertyValue', 'Text']
176 176
     ];
177 177
 
178 178
     /**
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     {
247 247
         $rules = parent::rules();
248 248
         $rules = array_merge($rules, [
249
-            [['distribution','includedInDataCatalog','issn','measurementTechnique','variableMeasured'], 'validateJsonSchema'],
249
+            [['distribution', 'includedInDataCatalog', 'issn', 'measurementTechnique', 'variableMeasured'], 'validateJsonSchema'],
250 250
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
251 251
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
252 252
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/GeoCoordinates.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
      * @var array
159 159
      */
160 160
     static protected $_schemaPropertyExpectedTypes = [
161
-        'address' => ['PostalAddress','Text'],
162
-        'addressCountry' => ['Country','Text'],
163
-        'elevation' => ['Number','Text'],
164
-        'latitude' => ['Number','Text'],
165
-        'longitude' => ['Number','Text'],
161
+        'address' => ['PostalAddress', 'Text'],
162
+        'addressCountry' => ['Country', 'Text'],
163
+        'elevation' => ['Number', 'Text'],
164
+        'latitude' => ['Number', 'Text'],
165
+        'longitude' => ['Number', 'Text'],
166 166
         'postalCode' => ['Text']
167 167
     ];
168 168
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     {
239 239
         $rules = parent::rules();
240 240
         $rules = array_merge($rules, [
241
-            [['address','addressCountry','elevation','latitude','longitude','postalCode'], 'validateJsonSchema'],
241
+            [['address', 'addressCountry', 'elevation', 'latitude', 'longitude', 'postalCode'], 'validateJsonSchema'],
242 242
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
243 243
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
244 244
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/OpeningHoursSpecification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
     {
233 233
         $rules = parent::rules();
234 234
         $rules = array_merge($rules, [
235
-            [['closes','dayOfWeek','opens','validFrom','validThrough'], 'validateJsonSchema'],
235
+            [['closes', 'dayOfWeek', 'opens', 'validFrom', 'validThrough'], 'validateJsonSchema'],
236 236
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
237 237
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
238 238
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/DigitalDocumentPermission.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      * @var array
127 127
      */
128 128
     static protected $_schemaPropertyExpectedTypes = [
129
-        'grantee' => ['Audience','ContactPoint','Organization','Person'],
129
+        'grantee' => ['Audience', 'ContactPoint', 'Organization', 'Person'],
130 130
         'permissionType' => ['DigitalDocumentPermissionType']
131 131
     ];
132 132
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     {
199 199
         $rules = parent::rules();
200 200
         $rules = array_merge($rules, [
201
-            [['grantee','permissionType'], 'validateJsonSchema'],
201
+            [['grantee', 'permissionType'], 'validateJsonSchema'],
202 202
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
203 203
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
204 204
         ]);
Please login to merge, or discard this patch.
src/models/jsonld/EmployeeRole.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @var array
128 128
      */
129 129
     static protected $_schemaPropertyExpectedTypes = [
130
-        'baseSalary' => ['MonetaryAmount','Number','PriceSpecification'],
130
+        'baseSalary' => ['MonetaryAmount', 'Number', 'PriceSpecification'],
131 131
         'salaryCurrency' => ['Text']
132 132
     ];
133 133
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     {
200 200
         $rules = parent::rules();
201 201
         $rules = array_merge($rules, [
202
-            [['baseSalary','salaryCurrency'], 'validateJsonSchema'],
202
+            [['baseSalary', 'salaryCurrency'], 'validateJsonSchema'],
203 203
             [self::$_googleRequiredSchema, 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
204 204
             [self::$_googleRecommendedSchema, 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
205 205
         ]);
Please login to merge, or discard this patch.