Completed
Pull Request — master (#38)
by John
02:23
created
src/Server/AccessControl/KeyRepository/ConfigurationKeyRepository.php 1 patch
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.
src/Server/AccessControl/KeyRepository/ArrayKeyRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function findKey(string $key): KeyMeta
33 33
     {
34
-        if($this->hasKey($key)) {
34
+        if ($this->hasKey($key)) {
35 35
             return new KeyMeta($key);
36 36
         } else {
37 37
             throw new UnableToFindKeyException("Unable to find API key in array.");
Please login to merge, or discard this patch.