Completed
Push — master ( a51466...8daf75 )
by Raffael
02:47
created
src/Auth/Adapter/AdapterInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Micro
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      * @param   Logger $logger
22 22
      * @return  void
23 23
      */
24
-    public function __construct(?Iterable $config, Logger $logger);
24
+    public function __construct(? Iterable $config, Logger $logger);
25 25
 
26 26
 
27 27
     /**
Please login to merge, or discard this patch.
src/Auth/Adapter/Basic/Ldap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Micro
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * @param   Logger $logger
51 51
      * @return  void
52 52
      */
53
-    public function __construct(?Iterable $config, Logger $logger)
53
+    public function __construct(? Iterable $config, Logger $logger)
54 54
     {
55 55
         $this->logger = $logger;
56 56
         $this->setOptions($config);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param   Iterable $config
64 64
      * @return  AdapterInterface
65 65
      */
66
-    public function setOptions(?Iterable $config=null): AdapterInterface
66
+    public function setOptions(? Iterable $config = null) : AdapterInterface
67 67
     {
68 68
         if ($config === null) {
69 69
             return $this;
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             }
82 82
         }
83 83
         
84
-        if(!isset($config['ldap'])) {
84
+        if (!isset($config['ldap'])) {
85 85
             $this->ldap = new LdapServer();
86 86
         }
87 87
 
Please login to merge, or discard this patch.
src/Auth/Adapter/Basic/AbstractBasic.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Micro
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             return false;
90 90
         }
91 91
 
92
-        $this->identifier  = $username;
92
+        $this->identifier = $username;
93 93
         return true;
94 94
     }
95 95
 
@@ -100,5 +100,5 @@  discard block
 block discarded – undo
100 100
      * @param  string $username
101 101
      * @return array
102 102
      */
103
-    protected abstract function findIdentity(string $username): ?array;
103
+    protected abstract function findIdentity(string $username): ? array;
104 104
 }
Please login to merge, or discard this patch.
src/Auth/AttributeMap.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@
 block discarded – undo
84 84
                 switch ($value['type']) {
85 85
                     case 'array':
86 86
                          $arr =  (array)$data[$value['attr']];
87
-                          unset($arr['count']);
88
-                          $attrs[$attr] = $arr;
87
+                            unset($arr['count']);
88
+                            $attrs[$attr] = $arr;
89 89
                     break;
90 90
                         
91 91
                     case 'string':
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Micro
@@ -83,21 +83,21 @@  discard block
 block discarded – undo
83 83
 
84 84
                 switch ($value['type']) {
85 85
                     case 'array':
86
-                         $arr =  (array)$data[$value['attr']];
86
+                         $arr = (array)$data[$value['attr']];
87 87
                           unset($arr['count']);
88 88
                           $attrs[$attr] = $arr;
89 89
                     break;
90 90
                         
91 91
                     case 'string':
92
-                         $attrs[$attr]  = (string)$store;
92
+                         $attrs[$attr] = (string)$store;
93 93
                     break;
94 94
                                             
95 95
                     case 'int':
96
-                         $attrs[$attr]  = (int)$store;
96
+                         $attrs[$attr] = (int)$store;
97 97
                     break;
98 98
                                             
99 99
                     case 'bool':
100
-                         $attrs[$attr]  = (bool)$store;
100
+                         $attrs[$attr] = (bool)$store;
101 101
                     break;
102 102
                     
103 103
                     default:
Please login to merge, or discard this patch.
src/Auth/Identity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Micro
Please login to merge, or discard this patch.