Passed
Push — develop ( d910cd...9b126e )
by Andrew
03:12
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();
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                     'AVG('.$column.') AS avg',
152 152
                 ])
153 153
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )");
154
-            if ((int)$siteId !== 0) {
154
+            if ((int) $siteId !== 0) {
155 155
                 $query->andWhere(['siteId' => $siteId]);
156 156
             }
157 157
             $query
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
                     'AVG("'.$column.'") AS avg',
171 171
                 ])
172 172
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )");
173
-            if ((int)$siteId !== 0) {
173
+            if ((int) $siteId !== 0) {
174 174
                 $query->andWhere(['siteId' => $siteId]);
175 175
                 $query
176 176
                     ->orderBy('avg DESC')
@@ -230,8 +230,8 @@  discard block
 block discarded – undo
230 230
         }
231 231
         if ($stats) {
232 232
             $data = [
233
-                (int)$stats,
234
-                (int)$handledStats,
233
+                (int) $stats,
234
+                (int) $handledStats,
235 235
             ];
236 236
         }
237 237
 
Please login to merge, or discard this patch.