@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | ]) |
71 | 71 | ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )") |
72 | 72 | ->andWhere(['not', [$column => null]]); |
73 | - if ((int)$siteId !== 0) { |
|
73 | + if ((int) $siteId !== 0) { |
|
74 | 74 | $query->andWhere(['siteId' => $siteId]); |
75 | 75 | } |
76 | 76 | $stats = $query->all(); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ]) |
85 | 85 | ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )") |
86 | 86 | ->andWhere(['not', [$column => null]]); |
87 | - if ((int)$siteId !== 0) { |
|
87 | + if ((int) $siteId !== 0) { |
|
88 | 88 | $query->andWhere(['siteId' => $siteId]); |
89 | 89 | } |
90 | 90 | $stats = $query->all(); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | ]) |
131 | 131 | ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )") |
132 | 132 | ->andWhere(['not', [$column => null]]); |
133 | - if ((int)$siteId !== 0) { |
|
133 | + if ((int) $siteId !== 0) { |
|
134 | 134 | $query->andWhere(['siteId' => $siteId]); |
135 | 135 | } |
136 | 136 | $query |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | ]) |
152 | 152 | ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )") |
153 | 153 | ->andWhere(['not', [$column => null]]); |
154 | - if ((int)$siteId !== 0) { |
|
154 | + if ((int) $siteId !== 0) { |
|
155 | 155 | $query->andWhere(['siteId' => $siteId]); |
156 | 156 | } |
157 | 157 | $query |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | ->from(['{{%webperf_data_samples}}']) |
99 | 99 | ->offset($offset) |
100 | 100 | ; |
101 | - if ((int)$siteId !== 0) { |
|
101 | + if ((int) $siteId !== 0) { |
|
102 | 102 | $query->where(['siteId' => $siteId]); |
103 | 103 | } |
104 | 104 | if ($filter !== '') { |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | ->offset($offset) |
230 | 230 | ->where(['url' => $pageUrl]) |
231 | 231 | ; |
232 | - if ((int)$siteId !== 0) { |
|
232 | + if ((int) $siteId !== 0) { |
|
233 | 233 | $query->where(['siteId' => $siteId]); |
234 | 234 | } |
235 | 235 | if ($filter !== '') { |