Passed
Push — develop ( 649663...e792ae )
by Andrew
03:27
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');
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
             ->where(['url' => $pageUrl])
507 507
             ->andWhere(['between', 'dateCreated', $start, $end])
508 508
         ;
509
-        if ((int)$siteId !== 0) {
509
+        if ((int) $siteId !== 0) {
510 510
             $query->andWhere(['siteId' => $siteId]);
511 511
         }
512 512
         if ($filter !== '') {
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
                     $stats['dateCreated'] = $date->format('Y-m-d H:i:s');
535 535
                 }
536 536
                 if (isset($stat['mobile'])) {
537
-                    $stat['mobile'] = (bool)$stat['mobile'];
537
+                    $stat['mobile'] = (bool) $stat['mobile'];
538 538
                 }
539 539
                 // Decode any emojis in the title
540 540
                 if (!empty($stat['title'])) {
Please login to merge, or discard this patch.