@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace App\Exception; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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) { |