Passed
Push — develop ( ef450e...335e9d )
by Andrew
03:21
created
src/services/Beacons.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -125,16 +125,16 @@
 block discarded – undo
125 125
             $sample = new DataSample([
126 126
                 'requestId' => Webperf::$requestUuid,
127 127
                 'url' =>DataSample::PLACEHOLDER_URL,
128
-                'craftTotalMs' => (int)($stats['database']['duration']
128
+                'craftTotalMs' => (int) ($stats['database']['duration']
129 129
                     + $stats['twig']['duration']
130 130
                     + $stats['other']['duration']),
131
-                'craftDbMs' => (int)$stats['database']['duration'],
132
-                'craftDbCnt' => (int)$stats['database']['count'],
133
-                'craftTwigMs' => (int)$stats['twig']['duration'],
134
-                'craftTwigCnt' => (int)$stats['twig']['count'],
135
-                'craftOtherMs' => (int)$stats['other']['duration'],
136
-                'craftOtherCnt' => (int)$stats['other']['count'],
137
-                'craftTotalMemory' => (int)($stats['database']['memory']
131
+                'craftDbMs' => (int) $stats['database']['duration'],
132
+                'craftDbCnt' => (int) $stats['database']['count'],
133
+                'craftTwigMs' => (int) $stats['twig']['duration'],
134
+                'craftTwigCnt' => (int) $stats['twig']['count'],
135
+                'craftOtherMs' => (int) $stats['other']['duration'],
136
+                'craftOtherCnt' => (int) $stats['other']['count'],
137
+                'craftTotalMemory' => (int) ($stats['database']['memory']
138 138
                     + $stats['twig']['memory']
139 139
                     + $stats['other']['memory']),
140 140
             ]);
Please login to merge, or discard this patch.
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.