Passed
Push — develop ( 06cb94...fb6c9d )
by Andrew
05:37
created
src/controllers/ChartsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     'AVG('.$column.') AS avg',
70 70
                 ])
71 71
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )");
72
-            if ((int)$siteId !== 0) {
72
+            if ((int) $siteId !== 0) {
73 73
                 $query->andWhere(['siteId' => $siteId]);
74 74
             }
75 75
             $stats = $query->all();
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                     'AVG("'.$column.'") AS avg',
83 83
                 ])
84 84
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )");
85
-            if ((int)$siteId !== 0) {
85
+            if ((int) $siteId !== 0) {
86 86
                 $query->andWhere(['siteId' => $siteId]);
87 87
             }
88 88
             $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
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                     'AVG("'.$column.'") AS avg',
148 148
                 ])
149 149
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )");
150
-            if ((int)$siteId !== 0) {
150
+            if ((int) $siteId !== 0) {
151 151
                 $query->andWhere(['siteId' => $siteId]);
152 152
             }
153 153
             $query
Please login to merge, or discard this patch.