Passed
Push — v1 ( 262f67...f3f274 )
by Andrew
09:29 queued 05:21
created
src/Webperf.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         Event::on(
205 205
             Plugins::class,
206 206
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
207
-            function (PluginEvent $event) {
207
+            function(PluginEvent $event) {
208 208
                 if ($event->plugin === $this) {
209 209
                     // Invalidate our caches after we've been installed
210 210
                     $this->clearAllCaches();
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         Event::on(
233 233
             CraftVariable::class,
234 234
             CraftVariable::EVENT_INIT,
235
-            function (Event $event) {
235
+            function(Event $event) {
236 236
                 /** @var CraftVariable $variable */
237 237
                 $variable = $event->sender;
238 238
                 $variable->set('webperf', WebperfVariable::class);
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
         Event::on(
243 243
             Plugins::class,
244 244
             Plugins::EVENT_AFTER_LOAD_PLUGINS,
245
-            function () {
245
+            function() {
246 246
                 // Install these only after all other plugins have loaded
247 247
                 $request = Craft::$app->getRequest();
248 248
                 // Only respond to non-console site requests
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         Event::on(
267 267
             UrlManager::class,
268 268
             UrlManager::EVENT_REGISTER_SITE_URL_RULES,
269
-            function (RegisterUrlRulesEvent $event) {
269
+            function(RegisterUrlRulesEvent $event) {
270 270
                 Craft::debug(
271 271
                     'UrlManager::EVENT_REGISTER_SITE_URL_RULES',
272 272
                     __METHOD__
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         Event::on(
290 290
             UrlManager::class,
291 291
             UrlManager::EVENT_REGISTER_CP_URL_RULES,
292
-            function (RegisterUrlRulesEvent $event) {
292
+            function(RegisterUrlRulesEvent $event) {
293 293
                 Craft::debug(
294 294
                     'UrlManager::EVENT_REGISTER_CP_URL_RULES',
295 295
                     __METHOD__
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         Event::on(
306 306
             Dashboard::class,
307 307
             Dashboard::EVENT_REGISTER_WIDGET_TYPES,
308
-            function (RegisterComponentTypesEvent $event) {
308
+            function(RegisterComponentTypesEvent $event) {
309 309
                 $event->types[] = MetricsWidget::class;
310 310
             }
311 311
         );
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
         Event::on(
314 314
             UserPermissions::class,
315 315
             UserPermissions::EVENT_REGISTER_PERMISSIONS,
316
-            function (RegisterUserPermissionsEvent $event) {
316
+            function(RegisterUserPermissionsEvent $event) {
317 317
                 Craft::debug(
318 318
                     'UserPermissions::EVENT_REGISTER_PERMISSIONS',
319 319
                     __METHOD__
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
             Event::on(
339 339
                 View::class,
340 340
                 View::EVENT_END_PAGE,
341
-                function () {
341
+                function() {
342 342
                     Craft::debug(
343 343
                         'View::EVENT_END_PAGE',
344 344
                         __METHOD__
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
             Event::on(
363 363
                 View::class,
364 364
                 View::EVENT_END_BODY,
365
-                function () {
365
+                function() {
366 366
                     Craft::debug(
367 367
                         'View::EVENT_END_BODY',
368 368
                         __METHOD__
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
             Event::on(
386 386
                 Application::class,
387 387
                 Application::EVENT_AFTER_REQUEST,
388
-                function () {
388
+                function() {
389 389
                     Craft::debug(
390 390
                         'Application::EVENT_AFTER_REQUEST',
391 391
                         __METHOD__
Please login to merge, or discard this patch.
src/controllers/ChartsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 ])
71 71
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )")
72 72
                 ->andWhere(['not', [$column => null]]);
73
-            if ((int)$siteId !== 0) {
73
+            if ((int) $siteId !== 0) {
74 74
                 $query->andWhere(['siteId' => $siteId]);
75 75
             }
76 76
             $stats = $query->all();
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 ])
85 85
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )")
86 86
                 ->andWhere(['not', [$column => null]]);
87
-            if ((int)$siteId !== 0) {
87
+            if ((int) $siteId !== 0) {
88 88
                 $query->andWhere(['siteId' => $siteId]);
89 89
             }
90 90
             $stats = $query->all();
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                 ])
131 131
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )")
132 132
                 ->andWhere(['not', [$column => null]]);
133
-            if ((int)$siteId !== 0) {
133
+            if ((int) $siteId !== 0) {
134 134
                 $query->andWhere(['siteId' => $siteId]);
135 135
             }
136 136
             $query
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 ])
152 152
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )")
153 153
                 ->andWhere(['not', [$column => null]]);
154
-            if ((int)$siteId !== 0) {
154
+            if ((int) $siteId !== 0) {
155 155
                 $query->andWhere(['siteId' => $siteId]);
156 156
             }
157 157
             $query
Please login to merge, or discard this patch.
src/controllers/TablesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             ])
87 87
             ->from(['{{%webperf_data_samples}}'])
88 88
             ->offset($offset);
89
-        if ((int)$siteId !== 0) {
89
+        if ((int) $siteId !== 0) {
90 90
             $query->where(['siteId' => $siteId]);
91 91
         }
92 92
         if ($filter !== '') {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             ->offset($offset)
170 170
             ->limit($per_page)
171 171
             ->orderBy("{$sortField} {$sortType}");
172
-        if ((int)$siteId !== 0) {
172
+        if ((int) $siteId !== 0) {
173 173
             $query->where(['siteId' => $siteId]);
174 174
         }
175 175
         if ($filter !== '') {
Please login to merge, or discard this patch.