Completed
Push — master ( 4fc007...9eb98f )
by John
02:50
created
src/Throttle/APIKeyCachePoolThrottle.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.