Completed
Push — master ( beb3fd...91a3d1 )
by John
02:45
created
src/Server/Exceptions/ThrottleLimitExceededException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * Class ThrottleLimitExceededException
7 7
  * @package LunixREST\Server\Exceptions
8 8
  */
9
-class ThrottleLimitExceededException extends UnableToHandleRequestException
10
-{
9
+class ThrottleLimitExceededException extends UnableToHandleRequestException {
11 10
 
12 11
 }
Please login to merge, or discard this patch.
RequestFactory/HeaderParser/Exceptions/UnableToParseHeadersException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use LunixREST\RequestFactory\Exceptions\UnableToCreateRequestException;
5 5
 
6
-class UnableToParseHeadersException extends UnableToCreateRequestException
7
-{
6
+class UnableToParseHeadersException extends UnableToCreateRequestException {
8 7
 
9 8
 }
Please login to merge, or discard this patch.
src/RequestFactory/URLParser/Exceptions/UnableToParseURLException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * Class UnableToParseURLException
9 9
  * @package LunixREST\RequestFactory\URLParser\Exceptions
10 10
  */
11
-class UnableToParseURLException extends UnableToCreateRequestException
12
-{
11
+class UnableToParseURLException extends UnableToCreateRequestException {
13 12
 
14 13
 }
Please login to merge, or discard this patch.
src/RequestFactory/URLParser/Exceptions/InvalidRequestURLException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * Class InvalidRequestURLException
7 7
  * @package LunixREST\RequestFactory\URLParser\Exceptions
8 8
  */
9
-class InvalidRequestURLException extends UnableToParseURLException
10
-{
9
+class InvalidRequestURLException extends UnableToParseURLException {
11 10
 
12 11
 }
Please login to merge, or discard this patch.
src/RequestFactory/Exceptions/UnableToCreateRequestException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * Class UnableToCreateRequestException
7 7
  * @package LunixREST\RequestFactory\Exceptions
8 8
  */
9
-class UnableToCreateRequestException extends \Exception
10
-{
9
+class UnableToCreateRequestException extends \Exception {
11 10
 
12 11
 }
Please login to merge, or discard this patch.
src/Server/AccessControl/AllAccessKeyRepositoryAccessControl.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 AllAccessKeyRepositoryAccessControl
9 9
  * @package LunixREST\Server\AccessControl
10 10
  */
11
-class AllAccessKeyRepositoryAccessControl extends KeyRepositoryAccessControl
12
-{
11
+class AllAccessKeyRepositoryAccessControl extends KeyRepositoryAccessControl {
13 12
 
14 13
     /**
15 14
      * Validates if a given request should be able to access what it's trying to
Please login to merge, or discard this patch.
src/Server/AccessControl/KeyRepository/KeyMeta.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@
 block discarded – undo
15 15
      * KeyMeta constructor.
16 16
      * @param string $key
17 17
      */
18
-    public function __construct(string $key)
19
-    {
18
+    public function __construct(string $key) {
20 19
         $this->key = $key;
21 20
     }
22 21
 
Please login to merge, or discard this patch.
Server/AccessControl/KeyRepository/Exceptions/UnableToFindKeyException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
  * Class UnableToFindKeyException
7 7
  * @package LunixREST\Server\AccessControl\KeyRepository\Exceptions
8 8
  */
9
-class UnableToFindKeyException extends \Exception
10
-{
9
+class UnableToFindKeyException extends \Exception {
11 10
 
12 11
 }
Please login to merge, or discard this patch.
src/Server/AccessControl/KeyRepository/ConfigurationKeyRepository.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
     public function __construct(Configuration $config, string $namespace, string $configKey = 'keys')
19 19
     {
20 20
         $keys = [];
21
-        if($config->has($configKey, $namespace)){
21
+        if ($config->has($configKey, $namespace)) {
22 22
             $configKeys = $config->get($configKey, $namespace);
23
-            if(is_array($configKeys)) {
23
+            if (is_array($configKeys)) {
24 24
                 $keys = $configKeys;
25 25
             }
26 26
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,17 +8,15 @@
 block discarded – undo
8 8
  * Class ConfigurationKeyRepository
9 9
  * @package LunixREST\Server\AccessControl\KeyRepository
10 10
  */
11
-class ConfigurationKeyRepository extends ArrayKeyRepository
12
-{
11
+class ConfigurationKeyRepository extends ArrayKeyRepository {
13 12
     /**
14 13
      * @param Configuration $config a config that has a list of valid keys in the stored $configKey
15 14
      * @param $namespace
16 15
      * @param string $configKey key to use when accessing the list of valid keys from the $config
17 16
      */
18
-    public function __construct(Configuration $config, string $namespace, string $configKey = 'keys')
19
-    {
17
+    public function __construct(Configuration $config, string $namespace, string $configKey = 'keys') {
20 18
         $keys = [];
21
-        if($config->has($configKey, $namespace)){
19
+        if($config->has($configKey, $namespace)) {
22 20
             $configKeys = $config->get($configKey, $namespace);
23 21
             if(is_array($configKeys)) {
24 22
                 $keys = $configKeys;
Please login to merge, or discard this patch.