Passed
Push — develop ( 1d50f7...7c9bec )
by Andrew
03:18
created
src/controllers/TablesController.php 1 patch
Spacing   +8 added lines, -8 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', 'dateUpdated', $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 !== '') {
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
             $index = 1;
143 143
             foreach ($stats as &$stat) {
144 144
                 $stat['id'] = $index++;
145
-                $stat['cnt'] = (int)$stat['cnt'];
146
-                $stat['totalPageLoad'] = (int)$stat['totalPageLoad'];
147
-                $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;
145
+                $stat['cnt'] = (int) $stat['cnt'];
146
+                $stat['totalPageLoad'] = (int) $stat['totalPageLoad'];
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');
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
             ->where(['url' => $pageUrl])
247 247
             ->andWhere(['between', 'dateUpdated', $start, $end])
248 248
         ;
249
-        if ((int)$siteId !== 0) {
249
+        if ((int) $siteId !== 0) {
250 250
             $query->andWhere(['siteId' => $siteId]);
251 251
         }
252 252
         if ($filter !== '') {
@@ -278,13 +278,13 @@  discard block
 block discarded – undo
278 278
                     $stat['type'] = 'frontend';
279 279
                 }
280 280
                 if ($stat['totalPageLoad'] > $maxTotalPageLoad) {
281
-                    $maxTotalPageLoad = (int)$stat['totalPageLoad'];
281
+                    $maxTotalPageLoad = (int) $stat['totalPageLoad'];
282 282
                 }
283 283
             }
284 284
             // Massage the stats
285 285
             foreach ($stats as &$stat) {
286
-                $stat['totalPageLoad'] = (int)$stat['totalPageLoad'];
287
-                $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;
286
+                $stat['totalPageLoad'] = (int) $stat['totalPageLoad'];
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');
Please login to merge, or discard this patch.