Passed
Push — develop ( 12d2e9...fa91c5 )
by Andrew
04:42
created
src/services/DataSamples.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             ->from(['{{%webperf_data_samples}}'])
43 43
             ->where(['not', [$column => null]])
44 44
             ;
45
-        if ((int)$siteId !== 0) {
45
+        if ((int) $siteId !== 0) {
46 46
             $query->andWhere(['siteId' => $siteId]);
47 47
         }
48 48
         return $query->count();
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 ['not', ['title' => '']],
68 68
             ])
69 69
         ;
70
-        if ((int)$siteId !== 0) {
70
+        if ((int) $siteId !== 0) {
71 71
             $query->andWhere(['siteId' => $siteId]);
72 72
         }
73 73
         $result = $query->one();
Please login to merge, or discard this patch.
src/controllers/TablesController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             ->from(['{{%webperf_data_samples}}'])
100 100
             ->offset($offset)
101 101
             ;
102
-        if ((int)$siteId !== 0) {
102
+        if ((int) $siteId !== 0) {
103 103
             $query->where(['siteId' => $siteId]);
104 104
         }
105 105
         if ($filter !== '') {
@@ -142,12 +142,12 @@  discard block
 block discarded – undo
142 142
             $index = 1;
143 143
             foreach ($stats as &$stat) {
144 144
                 $stat['id'] = $index++;
145
-                $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;
145
+                $stat['maxTotalPageLoad'] = (int) $maxTotalPageLoad;
146 146
                 // If there is no frontend beacon timing, use the Craft timing
147 147
                 if (empty($stat['pageLoad'])) {
148
-                    $stat['totalPageLoad'] = (int)$stat['craftTotalMs'];
148
+                    $stat['totalPageLoad'] = (int) $stat['craftTotalMs'];
149 149
                 } else {
150
-                    $stat['totalPageLoad'] = (int)$stat['pageLoad'];
150
+                    $stat['totalPageLoad'] = (int) $stat['pageLoad'];
151 151
                 }
152 152
                 // Decode any emojis in the title
153 153
                 if (!empty($stat['title'])) {
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
             ->offset($offset)
241 241
             ->where(['url' => $pageUrl])
242 242
         ;
243
-        if ((int)$siteId !== 0) {
243
+        if ((int) $siteId !== 0) {
244 244
             $query->andWhere(['siteId' => $siteId]);
245 245
         }
246 246
         if ($filter !== '') {
@@ -282,12 +282,12 @@  discard block
 block discarded – undo
282 282
             }
283 283
             // Massage the stats
284 284
             foreach ($stats as &$stat) {
285
-                $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;
285
+                $stat['maxTotalPageLoad'] = (int) $maxTotalPageLoad;
286 286
                 // If there is no frontend beacon timing, use the Craft timing
287 287
                 if (empty($stat['pageLoad'])) {
288
-                    $stat['totalPageLoad'] = (int)$stat['craftTotalMs'];
288
+                    $stat['totalPageLoad'] = (int) $stat['craftTotalMs'];
289 289
                 } else {
290
-                    $stat['totalPageLoad'] = (int)$stat['pageLoad'];
290
+                    $stat['totalPageLoad'] = (int) $stat['pageLoad'];
291 291
                 }
292 292
                 // Decode any emojis in the title
293 293
                 if (!empty($stat['title'])) {
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
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 ])
75 75
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )")
76 76
                 ->andWhere(['not', [$column => null]]);
77
-            if ((int)$siteId !== 0) {
77
+            if ((int) $siteId !== 0) {
78 78
                 $query->andWhere(['siteId' => $siteId]);
79 79
             }
80 80
             if ($pageUrl !== '') {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 ])
92 92
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )")
93 93
                 ->andWhere(['not', [$column => null]]);
94
-            if ((int)$siteId !== 0) {
94
+            if ((int) $siteId !== 0) {
95 95
                 $query->andWhere(['siteId' => $siteId]);
96 96
             }
97 97
             $stats = $query->all();
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 ])
138 138
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )")
139 139
                 ->andWhere(['not', [$column => null]]);
140
-            if ((int)$siteId !== 0) {
140
+            if ((int) $siteId !== 0) {
141 141
                 $query->andWhere(['siteId' => $siteId]);
142 142
             }
143 143
             $query
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                 ])
159 159
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )")
160 160
                 ->andWhere(['not', [$column => null]]);
161
-            if ((int)$siteId !== 0) {
161
+            if ((int) $siteId !== 0) {
162 162
                 $query->andWhere(['siteId' => $siteId]);
163 163
             }
164 164
             $query
Please login to merge, or discard this patch.