Passed
Push — develop ( 7034ea...06cf16 )
by Andrew
03:12
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/ChartsController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 ])
80 80
                 ->where(['between', 'dateUpdated', $start, $end])
81 81
                 ->andWhere(['not', [$column => null]]);
82
-            if ((int)$siteId !== 0) {
82
+            if ((int) $siteId !== 0) {
83 83
                 $query->andWhere(['siteId' => $siteId]);
84 84
             }
85 85
             if ($pageUrl !== '') {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                 ])
97 97
                 ->where(['between', 'dateUpdated', $start, $end])
98 98
                 ->andWhere(['not', [$column => null]]);
99
-            if ((int)$siteId !== 0) {
99
+            if ((int) $siteId !== 0) {
100 100
                 $query->andWhere(['siteId' => $siteId]);
101 101
             }
102 102
             $stats = $query->all();
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         // Massage the data
105 105
         if ($stats) {
106 106
             foreach ($stats as &$stat) {
107
-                $stat['cnt'] = (int)$stat['cnt'];
107
+                $stat['cnt'] = (int) $stat['cnt'];
108 108
             }
109 109
             $data = $stats[0];
110 110
         }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                 ])
151 151
                 ->where(['between', 'dateUpdated', $start, $end])
152 152
                 ->andWhere(['not', [$column => null]]);
153
-            if ((int)$siteId !== 0) {
153
+            if ((int) $siteId !== 0) {
154 154
                 $query->andWhere(['siteId' => $siteId]);
155 155
             }
156 156
             $query
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                 ])
172 172
                 ->where(['between', 'dateUpdated', $start, $end])
173 173
                 ->andWhere(['not', [$column => null]]);
174
-            if ((int)$siteId !== 0) {
174
+            if ((int) $siteId !== 0) {
175 175
                 $query->andWhere(['siteId' => $siteId]);
176 176
             }
177 177
             $query
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         // Massage the data
184 184
         if ($stats) {
185 185
             foreach ($stats as &$stat) {
186
-                $stat['cnt'] = (int)$stat['cnt'];
186
+                $stat['cnt'] = (int) $stat['cnt'];
187 187
                 $stat['detailPageUrl'] = UrlHelper::cpUrl('webperf/page-detail', [
188 188
                     'pageUrl' => $stat['url'],
189 189
                     'siteId' => $siteId,
Please login to merge, or discard this patch.
src/controllers/TablesController.php 1 patch
Spacing   +6 added lines, -6 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 !== '') {
@@ -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');
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
             ->where(['url' => $pageUrl])
246 246
             ->andWhere(['between', 'dateUpdated', $start, $end])
247 247
         ;
248
-        if ((int)$siteId !== 0) {
248
+        if ((int) $siteId !== 0) {
249 249
             $query->andWhere(['siteId' => $siteId]);
250 250
         }
251 251
         if ($filter !== '') {
@@ -277,12 +277,12 @@  discard block
 block discarded – undo
277 277
                     $stat['type'] = 'frontend';
278 278
                 }
279 279
                 if ($stat['totalPageLoad'] > $maxTotalPageLoad) {
280
-                    $maxTotalPageLoad = (int)$stat['totalPageLoad'];
280
+                    $maxTotalPageLoad = (int) $stat['totalPageLoad'];
281 281
                 }
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
                 // Decode any emojis in the title
287 287
                 if (!empty($stat['title'])) {
288 288
                     $stat['title'] = html_entity_decode($stat['title'], ENT_NOQUOTES, 'UTF-8');
Please login to merge, or discard this patch.