@@ -30,6 +30,6 @@ |
||
30 | 30 | */ |
31 | 31 | protected function deriveCacheKey(APIRequest $request): string |
32 | 32 | { |
33 | - return $this->keyPrefix . $request->getApiKey(); |
|
33 | + return $this->keyPrefix.$request->getApiKey(); |
|
34 | 34 | } |
35 | 35 | } |
@@ -4,8 +4,7 @@ discard block |
||
4 | 4 | use LunixREST\APIRequest\APIRequest; |
5 | 5 | use Psr\Cache\CacheItemPoolInterface; |
6 | 6 | |
7 | -class APIKeyCachePoolThrottle extends CachePoolThrottle |
|
8 | -{ |
|
7 | +class APIKeyCachePoolThrottle extends CachePoolThrottle { |
|
9 | 8 | /** |
10 | 9 | * @var string |
11 | 10 | */ |
@@ -18,8 +17,7 @@ discard block |
||
18 | 17 | * @param int $perXSeconds |
19 | 18 | * @param string $keyPrefix |
20 | 19 | */ |
21 | - public function __construct(CacheItemPoolInterface $cacheItemPool, $limit = 60, $perXSeconds = 60, $keyPrefix = '') |
|
22 | - { |
|
20 | + public function __construct(CacheItemPoolInterface $cacheItemPool, $limit = 60, $perXSeconds = 60, $keyPrefix = '') { |
|
23 | 21 | parent::__construct($cacheItemPool, $limit, $perXSeconds); |
24 | 22 | $this->keyPrefix = $keyPrefix; |
25 | 23 | } |