@@ -78,7 +78,7 @@ discard block  | 
                                                    ||
| 78 | 78 | ])  | 
                                                        
| 79 | 79 | ->where(['between', 'dateUpdated', $start, $end])  | 
                                                        
| 80 | 80 | ->andWhere(['not', [$column => null]]);  | 
                                                        
| 81 | -            if ((int)$siteId !== 0) { | 
                                                        |
| 81 | +            if ((int) $siteId !== 0) { | 
                                                        |
| 82 | 82 | $query->andWhere(['siteId' => $siteId]);  | 
                                                        
| 83 | 83 | }  | 
                                                        
| 84 | 84 |              if ($pageUrl !== '') { | 
                                                        
@@ -95,7 +95,7 @@ discard block  | 
                                                    ||
| 95 | 95 | ])  | 
                                                        
| 96 | 96 | ->where(['between', 'dateUpdated', $start, $end])  | 
                                                        
| 97 | 97 | ->andWhere(['not', [$column => null]]);  | 
                                                        
| 98 | -            if ((int)$siteId !== 0) { | 
                                                        |
| 98 | +            if ((int) $siteId !== 0) { | 
                                                        |
| 99 | 99 | $query->andWhere(['siteId' => $siteId]);  | 
                                                        
| 100 | 100 | }  | 
                                                        
| 101 | 101 | $stats = $query->all();  | 
                                                        
@@ -145,7 +145,7 @@ discard block  | 
                                                    ||
| 145 | 145 | ])  | 
                                                        
| 146 | 146 | ->where(['between', 'dateUpdated', $start, $end])  | 
                                                        
| 147 | 147 | ->andWhere(['not', [$column => null]]);  | 
                                                        
| 148 | -            if ((int)$siteId !== 0) { | 
                                                        |
| 148 | +            if ((int) $siteId !== 0) { | 
                                                        |
| 149 | 149 | $query->andWhere(['siteId' => $siteId]);  | 
                                                        
| 150 | 150 | }  | 
                                                        
| 151 | 151 | $query  | 
                                                        
@@ -166,7 +166,7 @@ discard block  | 
                                                    ||
| 166 | 166 | ])  | 
                                                        
| 167 | 167 | ->where(['between', 'dateUpdated', $start, $end])  | 
                                                        
| 168 | 168 | ->andWhere(['not', [$column => null]]);  | 
                                                        
| 169 | -            if ((int)$siteId !== 0) { | 
                                                        |
| 169 | +            if ((int) $siteId !== 0) { | 
                                                        |
| 170 | 170 | $query->andWhere(['siteId' => $siteId]);  | 
                                                        
| 171 | 171 | }  | 
                                                        
| 172 | 172 | $query  | 
                                                        
@@ -178,7 +178,7 @@ discard block  | 
                                                    ||
| 178 | 178 |          if ($stats) { | 
                                                        
| 179 | 179 | // Decode any emojis in the title  | 
                                                        
| 180 | 180 |              foreach ($stats as &$stat) { | 
                                                        
| 181 | - $stat['cnt'] = (int)$stat['cnt'];  | 
                                                        |
| 181 | + $stat['cnt'] = (int) $stat['cnt'];  | 
                                                        |
| 182 | 182 |                  $stat['detailPageUrl'] = UrlHelper::cpUrl('webperf/page-detail', [ | 
                                                        
| 183 | 183 | 'pageUrl' => $stat['url'],  | 
                                                        
| 184 | 184 | 'siteId' => $siteId,  | 
                                                        
@@ -106,7 +106,7 @@ discard block  | 
                                                    ||
| 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,12 +149,12 @@ discard block  | 
                                                    ||
| 149 | 149 | $index = 1;  | 
                                                        
| 150 | 150 |              foreach ($stats as &$stat) { | 
                                                        
| 151 | 151 | $stat['id'] = $index++;  | 
                                                        
| 152 | - $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;  | 
                                                        |
| 152 | + $stat['maxTotalPageLoad'] = (int) $maxTotalPageLoad;  | 
                                                        |
| 153 | 153 | // If there is no frontend beacon timing, use the Craft timing  | 
                                                        
| 154 | 154 |                  if (empty($stat['pageLoad'])) { | 
                                                        
| 155 | - $stat['totalPageLoad'] = (int)$stat['craftTotalMs'];  | 
                                                        |
| 155 | + $stat['totalPageLoad'] = (int) $stat['craftTotalMs'];  | 
                                                        |
| 156 | 156 |                  } else { | 
                                                        
| 157 | - $stat['totalPageLoad'] = (int)$stat['pageLoad'];  | 
                                                        |
| 157 | + $stat['totalPageLoad'] = (int) $stat['pageLoad'];  | 
                                                        |
| 158 | 158 | }  | 
                                                        
| 159 | 159 | // Decode any emojis in the title  | 
                                                        
| 160 | 160 |                  if (!empty($stat['title'])) { | 
                                                        
@@ -254,7 +254,7 @@ discard block  | 
                                                    ||
| 254 | 254 | ->where(['url' => $pageUrl])  | 
                                                        
| 255 | 255 | ->andWhere(['between', 'dateUpdated', $start, $end])  | 
                                                        
| 256 | 256 | ;  | 
                                                        
| 257 | -        if ((int)$siteId !== 0) { | 
                                                        |
| 257 | +        if ((int) $siteId !== 0) { | 
                                                        |
| 258 | 258 | $query->andWhere(['siteId' => $siteId]);  | 
                                                        
| 259 | 259 | }  | 
                                                        
| 260 | 260 |          if ($filter !== '') { | 
                                                        
@@ -296,12 +296,12 @@ discard block  | 
                                                    ||
| 296 | 296 | }  | 
                                                        
| 297 | 297 | // Massage the stats  | 
                                                        
| 298 | 298 |              foreach ($stats as &$stat) { | 
                                                        
| 299 | - $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad;  | 
                                                        |
| 299 | + $stat['maxTotalPageLoad'] = (int) $maxTotalPageLoad;  | 
                                                        |
| 300 | 300 | // If there is no frontend beacon timing, use the Craft timing  | 
                                                        
| 301 | 301 |                  if (empty($stat['pageLoad'])) { | 
                                                        
| 302 | - $stat['totalPageLoad'] = (int)$stat['craftTotalMs'];  | 
                                                        |
| 302 | + $stat['totalPageLoad'] = (int) $stat['craftTotalMs'];  | 
                                                        |
| 303 | 303 |                  } else { | 
                                                        
| 304 | - $stat['totalPageLoad'] = (int)$stat['pageLoad'];  | 
                                                        |
| 304 | + $stat['totalPageLoad'] = (int) $stat['pageLoad'];  | 
                                                        |
| 305 | 305 | }  | 
                                                        
| 306 | 306 | // Decode any emojis in the title  | 
                                                        
| 307 | 307 |                  if (!empty($stat['title'])) { |