Completed
Branch master (5acd24)
by John
02:19
created
src/Server/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
@@ -8,8 +8,7 @@  discard block
 block discarded – undo
8 8
  * Class APIKeyCachePoolThrottle
9 9
  * @package LunixREST\Server\Throttle
10 10
  */
11
-class APIKeyCachePoolThrottle extends CachePoolThrottle
12
-{
11
+class APIKeyCachePoolThrottle extends CachePoolThrottle {
13 12
     /**
14 13
      * @var string
15 14
      */
@@ -22,8 +21,7 @@  discard block
 block discarded – undo
22 21
      * @param int $perXSeconds
23 22
      * @param string $keyPrefix
24 23
      */
25
-    public function __construct(CacheItemPoolInterface $cacheItemPool, $limit = 60, $perXSeconds = 60, $keyPrefix = '')
26
-    {
24
+    public function __construct(CacheItemPoolInterface $cacheItemPool, $limit = 60, $perXSeconds = 60, $keyPrefix = '') {
27 25
         parent::__construct($cacheItemPool, $limit, $perXSeconds);
28 26
         $this->keyPrefix = $keyPrefix;
29 27
     }
Please login to merge, or discard this patch.
src/Server/AccessControl/AllAccessConfigurationListAccessControl.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@  discard block
 block discarded – undo
9 9
  * Class AllAccessListAccessControl
10 10
  * @package LunixREST\Server\AccessControl
11 11
  */
12
-class AllAccessConfigurationListAccessControl implements AccessControl
13
-{
12
+class AllAccessConfigurationListAccessControl implements AccessControl {
14 13
     /**
15 14
      * @var Configuration
16 15
      */
@@ -30,8 +29,7 @@  discard block
 block discarded – undo
30 29
      * @param $namespace
31 30
      * @param string $configKey key to use when accessing the list of valid keys from the $config
32 31
      */
33
-    public function __construct(Configuration $config, string $namespace, string $configKey = 'keys')
34
-    {
32
+    public function __construct(Configuration $config, string $namespace, string $configKey = 'keys') {
35 33
         $this->config = $config;
36 34
         $this->configKey = $configKey;
37 35
         $this->namespace = $namespace;
Please login to merge, or discard this patch.
src/Server/AccessControl/PublicAccessControl.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
  * Class PublicAccessControl
9 9
  * @package LunixREST\Server\AccessControl
10 10
  */
11
-class PublicAccessControl implements AccessControl
12
-{
11
+class PublicAccessControl implements AccessControl {
13 12
     /**
14 13
      * @param \LunixREST\Server\APIRequest\APIRequest $request
15 14
      * @return bool
Please login to merge, or discard this patch.
src/Server/AccessControl/AccessControl.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
  * Interface AccessControl
9 9
  * @package LunixREST\Server\AccessControl
10 10
  */
11
-interface AccessControl
12
-{
11
+interface AccessControl {
13 12
     /**
14 13
      * Validates if a given request should be able to access what it's trying to
15 14
      * @param APIRequest $request
Please login to merge, or discard this patch.
src/Server/AccessControl/OneKeyAccessControl.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@  discard block
 block discarded – undo
8 8
  * Class OneKeyAccessControl
9 9
  * @package LunixREST\Server\AccessControl
10 10
  */
11
-class OneKeyAccessControl implements AccessControl
12
-{
11
+class OneKeyAccessControl implements AccessControl {
13 12
     /**
14 13
      * @var string
15 14
      */
@@ -18,8 +17,7 @@  discard block
 block discarded – undo
18 17
     /**
19 18
      * @param string $key
20 19
      */
21
-    public function __construct($key)
22
-    {
20
+    public function __construct($key) {
23 21
         $this->key = $key;
24 22
     }
25 23
 
Please login to merge, or discard this patch.
src/Server/AccessControl/AllAccessListAccessControl.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@  discard block
 block discarded – undo
9 9
  * Class AllAccessListAccessControl
10 10
  * @package LunixRESTBasics\Server\AccessControl
11 11
  */
12
-class AllAccessListAccessControl implements AccessControl
13
-{
12
+class AllAccessListAccessControl implements AccessControl {
14 13
     /**
15 14
      * @var array
16 15
      */
@@ -19,8 +18,7 @@  discard block
 block discarded – undo
19 18
     /**
20 19
      * @param array $keys
21 20
      */
22
-    public function __construct(Array $keys)
23
-    {
21
+    public function __construct(Array $keys) {
24 22
         $this->keys = $keys;
25 23
     }
26 24
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * @param array $keys
21 21
      */
22
-    public function __construct(Array $keys)
22
+    public function __construct(array $keys)
23 23
     {
24 24
         $this->keys = $keys;
25 25
     }
Please login to merge, or discard this patch.
src/Server/Router/Endpoint/LoggingEndpoint.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
  * Class LoggingEndpoint
10 10
  * @package LunixREST\Server\Router\Endpoint
11 11
  */
12
-abstract class LoggingEndpoint implements Endpoint
13
-{
12
+abstract class LoggingEndpoint implements Endpoint {
14 13
     use LoggerAwareTrait;
15 14
 }
Please login to merge, or discard this patch.
src/Server/Router/Endpoint/Endpoint.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
  * Interface Endpoint
15 15
  * @package LunixREST\Server\Router\Endpoint
16 16
  */
17
-interface Endpoint
18
-{
17
+interface Endpoint {
19 18
     /**
20 19
      * @param APIRequest $request
21 20
      * @return APIResponseData
Please login to merge, or discard this patch.
src/Server/Router/Endpoint/DefaultEndpoint.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@
 block discarded – undo
13 13
  * Class Endpoint
14 14
  * @package LunixREST\Server\Router\Endpoint
15 15
  */
16
-class DefaultEndpoint implements Endpoint
17
-{
16
+class DefaultEndpoint implements Endpoint {
18 17
     /**
19 18
      * @param APIRequest $request
20 19
      * @return APIResponseData
Please login to merge, or discard this patch.