Passed
Push — develop ( f7a9a7...ac6772 )
by Andrew
04:14
created
src/services/Beacons.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -144,16 +144,16 @@
 block discarded – undo
144 144
             'requestId' => Webperf::$requestUuid,
145 145
             'url' => Webperf::$requestUrl ?? DataSample::PLACEHOLDER_URL,
146 146
             'queryString' => $request->getQueryString(),
147
-            'craftTotalMs' => (int)($stats['database']['duration']
147
+            'craftTotalMs' => (int) ($stats['database']['duration']
148 148
                 + $stats['twig']['duration']
149 149
                 + $stats['other']['duration']),
150
-            'craftDbMs' => (int)$stats['database']['duration'],
151
-            'craftDbCnt' => (int)$stats['database']['count'],
152
-            'craftTwigMs' => (int)$stats['twig']['duration'],
153
-            'craftTwigCnt' => (int)$stats['twig']['count'],
154
-            'craftOtherMs' => (int)$stats['other']['duration'],
155
-            'craftOtherCnt' => (int)$stats['other']['count'],
156
-            'craftTotalMemory' => (int)($stats['database']['memory']
150
+            'craftDbMs' => (int) $stats['database']['duration'],
151
+            'craftDbCnt' => (int) $stats['database']['count'],
152
+            'craftTwigMs' => (int) $stats['twig']['duration'],
153
+            'craftTwigCnt' => (int) $stats['twig']['count'],
154
+            'craftOtherMs' => (int) $stats['other']['duration'],
155
+            'craftOtherCnt' => (int) $stats['other']['count'],
156
+            'craftTotalMemory' => (int) ($stats['database']['memory']
157 157
                 + $stats['twig']['memory']
158 158
                 + $stats['other']['memory']),
159 159
         ]);
Please login to merge, or discard this patch.
src/controllers/ChartsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 ])
71 71
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )")
72 72
                 ->andWhere(['not', [$column => null]]);
73
-            if ((int)$siteId !== 0) {
73
+            if ((int) $siteId !== 0) {
74 74
                 $query->andWhere(['siteId' => $siteId]);
75 75
             }
76 76
             $stats = $query->all();
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 ])
85 85
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )")
86 86
                 ->andWhere(['not', [$column => null]]);
87
-            if ((int)$siteId !== 0) {
87
+            if ((int) $siteId !== 0) {
88 88
                 $query->andWhere(['siteId' => $siteId]);
89 89
             }
90 90
             $stats = $query->all();
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                 ])
131 131
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )")
132 132
                 ->andWhere(['not', [$column => null]]);
133
-            if ((int)$siteId !== 0) {
133
+            if ((int) $siteId !== 0) {
134 134
                 $query->andWhere(['siteId' => $siteId]);
135 135
             }
136 136
             $query
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 ])
152 152
                 ->where("\"dateUpdated\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )")
153 153
                 ->andWhere(['not', [$column => null]]);
154
-            if ((int)$siteId !== 0) {
154
+            if ((int) $siteId !== 0) {
155 155
                 $query->andWhere(['siteId' => $siteId]);
156 156
             }
157 157
             $query
Please login to merge, or discard this patch.
src/controllers/TablesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             ->from(['{{%webperf_data_samples}}'])
101 101
             ->offset($offset)
102 102
             ;
103
-        if ((int)$siteId !== 0) {
103
+        if ((int) $siteId !== 0) {
104 104
             $query->where(['siteId' => $siteId]);
105 105
         }
106 106
         if ($filter !== '') {
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             ->offset($offset)
209 209
             ->limit($per_page)
210 210
             ->orderBy("{$sortField} {$sortType}");
211
-        if ((int)$siteId !== 0) {
211
+        if ((int) $siteId !== 0) {
212 212
             $query->where(['siteId' => $siteId]);
213 213
         }
214 214
         if ($filter !== '') {
Please login to merge, or discard this patch.