Passed
Push — develop ( 75b204...456870 )
by Andrew
03:14
created
src/controllers/ChartsController.php 1 patch
Spacing   +4 added lines, -4 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();
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
         }
148 148
         if ($stats) {
149 149
             $data = [
150
-                (int)$stats,
151
-                (int)$handledStats,
150
+                (int) $stats,
151
+                (int) $handledStats,
152 152
             ];
153 153
         }
154 154
 
Please login to merge, or discard this patch.