@@ -124,7 +124,7 @@ |
||
124 | 124 | // Compute the largest page load time |
125 | 125 | $maxTotalPageLoad = 0; |
126 | 126 | foreach ($stats as &$stat) { |
127 | - // Determine the stat type |
|
127 | + // Determine the stat type |
|
128 | 128 | if (!empty($stat['pageLoad']) && !empty($stat['craftTotalMs'])) { |
129 | 129 | $stat['type'] = 'both'; |
130 | 130 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | ->offset($offset) |
104 | 104 | ->where(['between', 'dateUpdated', $start, $end]) |
105 | 105 | ; |
106 | - if ((int)$siteId !== 0) { |
|
106 | + if ((int) $siteId !== 0) { |
|
107 | 107 | $query->andWhere(['siteId' => $siteId]); |
108 | 108 | } |
109 | 109 | if ($filter !== '') { |
@@ -142,8 +142,8 @@ discard block |
||
142 | 142 | $index = 1; |
143 | 143 | foreach ($stats as &$stat) { |
144 | 144 | $stat['id'] = $index++; |
145 | - $stat['cnt'] = (int)$stat['cnt']; |
|
146 | - $stat['maxTotalPageLoad'] = (int)$maxTotalPageLoad; |
|
145 | + $stat['cnt'] = (int) $stat['cnt']; |
|
146 | + $stat['maxTotalPageLoad'] = (int) $maxTotalPageLoad; |
|
147 | 147 | // Decode any emojis in the title |
148 | 148 | if (!empty($stat['title'])) { |
149 | 149 | $stat['title'] = html_entity_decode($stat['title'], ENT_NOQUOTES, 'UTF-8'); |
@@ -42,7 +42,7 @@ discard block |
||
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 |
||
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(); |