Passed
Push — develop ( 8fcf02...d8383b )
by Andrew
03:11
created
src/controllers/ChartsController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                     'AVG('.$column.') AS avg',
71 71
                 ])
72 72
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )");
73
-            if ((int)$siteId !== 0) {
73
+            if ((int) $siteId !== 0) {
74 74
                 $query->andWhere(['siteId' => $siteId]);
75 75
             }
76 76
             $stats = $query->all();
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                     'AVG("'.$column.'") AS avg',
84 84
                 ])
85 85
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )");
86
-            if ((int)$siteId !== 0) {
86
+            if ((int) $siteId !== 0) {
87 87
                 $query->andWhere(['siteId' => $siteId]);
88 88
             }
89 89
             $stats = $query->all();
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                     'AVG('.$column.') AS avg',
128 128
                 ])
129 129
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )");
130
-            if ((int)$siteId !== 0) {
130
+            if ((int) $siteId !== 0) {
131 131
                 $query->andWhere(['siteId' => $siteId]);
132 132
             }
133 133
             $query
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                     'AVG("'.$column.'") AS avg',
147 147
                 ])
148 148
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )");
149
-            if ((int)$siteId !== 0) {
149
+            if ((int) $siteId !== 0) {
150 150
                 $query->andWhere(['siteId' => $siteId]);
151 151
             }
152 152
             $query
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
208 208
         }
209 209
         if ($stats) {
210 210
             $data = [
211
-                (int)$stats,
212
-                (int)$handledStats,
211
+                (int) $stats,
212
+                (int) $handledStats,
213 213
             ];
214 214
         }
215 215
 
Please login to merge, or discard this patch.