Passed
Push — v1 ( 01300c...f6b482 )
by Andrew
07:56 queued 04:40
created
src/controllers/ChartsController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                     'AVG('.$column.') AS avg',
83 83
                 ])
84 84
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )");
85
-            if ((int)$siteId !== 0) {
85
+            if ((int) $siteId !== 0) {
86 86
                 $query->andWhere(['siteId' => $siteId]);
87 87
             }
88 88
             $stats = $query->all();
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                     'AVG("'.$column.'") AS avg',
96 96
                 ])
97 97
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )");
98
-            if ((int)$siteId !== 0) {
98
+            if ((int) $siteId !== 0) {
99 99
                 $query->andWhere(['siteId' => $siteId]);
100 100
             }
101 101
             $stats = $query->all();
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                     'AVG('.$column.') AS avg',
151 151
                 ])
152 152
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )");
153
-            if ((int)$siteId !== 0) {
153
+            if ((int) $siteId !== 0) {
154 154
                 $query->andWhere(['siteId' => $siteId]);
155 155
             }
156 156
             $query
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                     'AVG("'.$column.'") AS avg',
168 168
                 ])
169 169
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )");
170
-            if ((int)$siteId !== 0) {
170
+            if ((int) $siteId !== 0) {
171 171
                 $query->andWhere(['siteId' => $siteId]);
172 172
             }
173 173
             $stats = $query->all();
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
         }
224 224
         if ($stats) {
225 225
             $data = [
226
-                (int)$stats,
227
-                (int)$handledStats,
226
+                (int) $stats,
227
+                (int) $handledStats,
228 228
             ];
229 229
         }
230 230
 
Please login to merge, or discard this patch.