Passed
Push — develop ( b0cc84...748684 )
by Andrew
03:13
created
src/controllers/MetricsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
             $now = round(microtime(true) * 1000);
186 186
             $cache = Craft::$app->getCache();
187 187
             $then = $cache->get(self::LAST_BEACON_CACHE_KEY);
188
-            if (($then !== false) && ($now - (int)$then < Webperf::$settings->rateLimitMs)) {
188
+            if (($then !== false) && ($now - (int) $then < Webperf::$settings->rateLimitMs)) {
189 189
                 $limited = true;
190 190
                 Craft::warning('Beacon ignored due to rate limiting', __METHOD__);
191 191
             }
Please login to merge, or discard this patch.