@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * |
| 46 | 46 | * @return AdapterInterface |
| 47 | 47 | */ |
| 48 | - public function setOptions(? Iterable $config = null): AdapterInterface |
|
| 48 | + public function setOptions(? Iterable $config = null) : AdapterInterface |
|
| 49 | 49 | { |
| 50 | 50 | if ($config === null) { |
| 51 | 51 | return $this; |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | if (count($simplexml_child->children()) === 0) { |
| 120 | 120 | if (!isset($simplexml_to->{$simplexml_child->getName()})) { |
| 121 | 121 | $simplexml_to->addChild($simplexml_child->getName(), htmlspecialchars((string)$simplexml_child)); |
| 122 | - } elseif(count($simplexml_to->{$simplexml_child->getName()}->children()) === 0) { |
|
| 122 | + } elseif (count($simplexml_to->{$simplexml_child->getName()}->children()) === 0) { |
|
| 123 | 123 | $simplexml_to->{$simplexml_child->getName()} = htmlspecialchars((string)$simplexml_child); |
| 124 | 124 | } |
| 125 | 125 | } else { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @param SimpleXMLElement $xml |
| 202 | 202 | * @return Config |
| 203 | 203 | */ |
| 204 | - public function map(?SimpleXMLElement $xml = null): Config |
|
| 204 | + public function map(?SimpleXMLElement $xml = null) : Config |
|
| 205 | 205 | { |
| 206 | 206 | if ($xml === null) { |
| 207 | 207 | $xml = $this->store; |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | |
| 210 | 210 | $config = new Config(); |
| 211 | 211 | foreach ($xml->getNamespaces() + [null] as $prefix => $namespace) { |
| 212 | - if($prefix === self::CONFIG_FEATURE_NAMESPACE_PREFIX) { |
|
| 212 | + if ($prefix === self::CONFIG_FEATURE_NAMESPACE_PREFIX) { |
|
| 213 | 213 | continue; |
| 214 | 214 | } |
| 215 | 215 | |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | foreach ($xml as $name => $element) { |
| 230 | - if(isset($element->attributes(self::CONFIG_FEATURE_NAMESPACE)->name)) { |
|
| 230 | + if (isset($element->attributes(self::CONFIG_FEATURE_NAMESPACE)->name)) { |
|
| 231 | 231 | $name = (string)$element->attributes(self::CONFIG_FEATURE_NAMESPACE)->name; |
| 232 | 232 | } |
| 233 | 233 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | protected $account_filter = '(uid=%s)'; |
| 44 | 44 | |
| 45 | 45 | |
| 46 | - public function __construct(LdapServer $ldap, LoggerInterface $logger, ?Iterable $config=null) |
|
| 46 | + public function __construct(LdapServer $ldap, LoggerInterface $logger, ?Iterable $config = null) |
|
| 47 | 47 | { |
| 48 | 48 | $this->logger = $logger; |
| 49 | 49 | $this->ldap = $ldap; |
@@ -71,16 +71,16 @@ |
||
| 71 | 71 | * @param Iterable $config |
| 72 | 72 | * @return Log |
| 73 | 73 | */ |
| 74 | - public function setOptions(? Iterable $config = null): Log |
|
| 74 | + public function setOptions(? Iterable $config = null) : Log |
|
| 75 | 75 | { |
| 76 | 76 | if ($config === null) { |
| 77 | 77 | return $this; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | foreach ($config as $option => $value) { |
| 81 | - switch($option) { |
|
| 81 | + switch ($option) { |
|
| 82 | 82 | case 'adapter': |
| 83 | - foreach($value as $name => $adapter) { |
|
| 83 | + foreach ($value as $name => $adapter) { |
|
| 84 | 84 | $this->injectAdapter($name, $adapter); |
| 85 | 85 | } |
| 86 | 86 | break; |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | $this->{$option} = (string)$value; |
| 94 | 94 | break; |
| 95 | 95 | case 'adapter': |
| 96 | - foreach($value as $name => $adapter) { |
|
| 96 | + foreach ($value as $name => $adapter) { |
|
| 97 | 97 | $this->injectAdapter($name, $adapter); |
| 98 | 98 | } |
| 99 | 99 | break; |