@@ -79,7 +79,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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, |