@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -84,8 +84,8 @@ |
||
| 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': |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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: |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * Micro |