Passed
Pull Request — main (#462)
by MusikAnimal
08:15 queued 05:17
created
src/Exception/MarkupTooManyRequestHttpException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace App\Exception;
6 6
 
Please login to merge, or discard this patch.
src/EventSubscriber/RateLimitSubscriber.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace App\EventSubscriber;
6 6
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         $cacheItem = $this->cache->getItem($cacheKey);
171 171
 
172 172
         // If increment value already in cache, or start with 1.
173
-        $count = $cacheItem->isHit() ? (int) $cacheItem->get() + 1 : 1;
173
+        $count = $cacheItem->isHit() ? (int)$cacheItem->get()+1 : 1;
174 174
 
175 175
         // Check if limit has been exceeded, and if so, throw an error.
176 176
         if ($count > $this->rateLimit) {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         $cacheItem = $this->cache->getItem($cacheKey);
211 211
 
212 212
         // If increment value already in cache, or start with 1.
213
-        $count = $cacheItem->isHit() ? (int)$cacheItem->get() + 1 : 1;
213
+        $count = $cacheItem->isHit() ? (int)$cacheItem->get()+1 : 1;
214 214
 
215 215
         // Check if limit has been exceeded, and if so, add a log entry.
216 216
         if ($count > 3) {
Please login to merge, or discard this patch.