Passed
Push — develop ( 5aeb44...a2a211 )
by Andrew
03:40
created
src/controllers/TablesController.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             ->offset($offset)
105 105
             ->where(['between', 'dateCreated', $start, $end])
106 106
         ;
107
-        if ((int)$siteId !== 0) {
107
+        if ((int) $siteId !== 0) {
108 108
             $query->andWhere(['siteId' => $siteId]);
109 109
         }
110 110
         if ($filter !== '') {
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
             $index = 1;
144 144
             foreach ($stats as &$stat) {
145 145
                 $stat['id'] = $index++;
146
-                $stat['cnt'] = (int)$stat['cnt'];
147
-                $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;
146
+                $stat['cnt'] = (int) $stat['cnt'];
147
+                $stat['maxTotalPageLoad'] = (int) $maxTotalPageLoad;
148 148
                 // Decode any emojis in the title
149 149
                 if (!empty($stat['title'])) {
150 150
                     $stat['title'] = html_entity_decode($stat['title'], ENT_NOQUOTES, 'UTF-8');
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             ->where(['url' => $pageUrl])
243 243
             ->andWhere(['between', 'dateCreated', $start, $end])
244 244
         ;
245
-        if ((int)$siteId !== 0) {
245
+        if ((int) $siteId !== 0) {
246 246
             $query->andWhere(['siteId' => $siteId]);
247 247
         }
248 248
         if ($filter !== '') {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
                     $stat['type'] = 'frontend';
275 275
                 }
276 276
                 if ($stat['pageLoad'] > $maxTotalPageLoad) {
277
-                    $maxTotalPageLoad = (int)$stat['pageLoad'];
277
+                    $maxTotalPageLoad = (int) $stat['pageLoad'];
278 278
                 }
279 279
             }
280 280
             // Massage the stats
@@ -283,8 +283,8 @@  discard block
 block discarded – undo
283 283
                     $date = DateTimeHelper::toDateTime($stats['dateCreated']);
284 284
                     $stats['dateCreated'] = $date->format('Y-m-d H:i:s');
285 285
                 }
286
-                $stat['mobile'] = (bool)$stat['mobile'];
287
-                $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;
286
+                $stat['mobile'] = (bool) $stat['mobile'];
287
+                $stat['maxTotalPageLoad'] = (int) $maxTotalPageLoad;
288 288
                 // Decode any emojis in the title
289 289
                 if (!empty($stat['title'])) {
290 290
                     $stat['title'] = html_entity_decode($stat['title'], ENT_NOQUOTES, 'UTF-8');
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
             ->offset($offset)
382 382
             ->where(['between', 'dateCreated', $start, $end])
383 383
         ;
384
-        if ((int)$siteId !== 0) {
384
+        if ((int) $siteId !== 0) {
385 385
             $query->andWhere(['siteId' => $siteId]);
386 386
         }
387 387
         if ($filter !== '') {
@@ -402,9 +402,9 @@  discard block
 block discarded – undo
402 402
             $user = Craft::$app->getUser()->getIdentity();
403 403
             // Massage the stats
404 404
             foreach ($stats as &$stat) {
405
-                $stat['cnt'] = (int)$stat['cnt'];
406
-                $stat['craftCount'] = (int)$stat['craftCount'];
407
-                $stat['boomerangCount'] = (int)$stat['boomerangCount'];
405
+                $stat['cnt'] = (int) $stat['cnt'];
406
+                $stat['craftCount'] = (int) $stat['craftCount'];
407
+                $stat['boomerangCount'] = (int) $stat['boomerangCount'];
408 408
                 // Decode any emojis in the title
409 409
                 if (!empty($stat['title'])) {
410 410
                     $stat['title'] = html_entity_decode($stat['title'], ENT_NOQUOTES, 'UTF-8');
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
             ->andWhere(['between', '[[webperf_error_samples.dateCreated]]', $start, $end])
521 521
             ->leftJoin('{{%webperf_data_samples}} webperf_data_samples', '[[webperf_data_samples.requestId]] = [[webperf_error_samples.requestId]]')
522 522
         ;
523
-        if ((int)$siteId !== 0) {
523
+        if ((int) $siteId !== 0) {
524 524
             $query->andWhere(['siteId' => $siteId]);
525 525
         }
526 526
         if ($filter !== '') {
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
                     $stats['dateCreated'] = $date->format('Y-m-d H:i:s');
549 549
                 }
550 550
                 if (isset($stat['mobile'])) {
551
-                    $stat['mobile'] = (bool)$stat['mobile'];
551
+                    $stat['mobile'] = (bool) $stat['mobile'];
552 552
                 }
553 553
                 // Decode any emojis in the title
554 554
                 if (!empty($stat['title'])) {
Please login to merge, or discard this patch.