Passed
Push — develop ( 3f75f9...7ebb74 )
by Andrew
03:21
created
src/controllers/TablesController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             ->offset($offset)
107 107
             ->where(['between', 'dateUpdated', $start, $end])
108 108
         ;
109
-        if ((int)$siteId !== 0) {
109
+        if ((int) $siteId !== 0) {
110 110
             $query->andWhere(['siteId' => $siteId]);
111 111
         }
112 112
         if ($filter !== '') {
@@ -149,13 +149,13 @@  discard block
 block discarded – undo
149 149
             $index = 1;
150 150
             foreach ($stats as &$stat) {
151 151
                 $stat['id'] = $index++;
152
-                $stat['cnt'] = (int)$stat['cnt'];
153
-                $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;
152
+                $stat['cnt'] = (int) $stat['cnt'];
153
+                $stat['maxTotalPageLoad'] = (int) $maxTotalPageLoad;
154 154
                 // If there is no frontend beacon timing, use the Craft timing
155 155
                 if (empty($stat['pageLoad'])) {
156
-                    $stat['totalPageLoad'] = (int)$stat['craftTotalMs'];
156
+                    $stat['totalPageLoad'] = (int) $stat['craftTotalMs'];
157 157
                 } else {
158
-                    $stat['totalPageLoad'] = (int)$stat['pageLoad'];
158
+                    $stat['totalPageLoad'] = (int) $stat['pageLoad'];
159 159
                 }
160 160
                 // Decode any emojis in the title
161 161
                 if (!empty($stat['title'])) {
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
             ->where(['url' => $pageUrl])
256 256
             ->andWhere(['between', 'dateUpdated', $start, $end])
257 257
         ;
258
-        if ((int)$siteId !== 0) {
258
+        if ((int) $siteId !== 0) {
259 259
             $query->andWhere(['siteId' => $siteId]);
260 260
         }
261 261
         if ($filter !== '') {
@@ -297,12 +297,12 @@  discard block
 block discarded – undo
297 297
             }
298 298
             // Massage the stats
299 299
             foreach ($stats as &$stat) {
300
-                $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;
300
+                $stat['maxTotalPageLoad'] = (int) $maxTotalPageLoad;
301 301
                 // If there is no frontend beacon timing, use the Craft timing
302 302
                 if (empty($stat['pageLoad'])) {
303
-                    $stat['totalPageLoad'] = (int)$stat['craftTotalMs'];
303
+                    $stat['totalPageLoad'] = (int) $stat['craftTotalMs'];
304 304
                 } else {
305
-                    $stat['totalPageLoad'] = (int)$stat['pageLoad'];
305
+                    $stat['totalPageLoad'] = (int) $stat['pageLoad'];
306 306
                 }
307 307
                 // Decode any emojis in the title
308 308
                 if (!empty($stat['title'])) {
Please login to merge, or discard this patch.