@@ -99,7 +99,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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'])) { |