Completed
Push — master ( b441c2...e19494 )
by Raffael
01:50
created
src/Config/Xml.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Auth/Adapter/Basic/Ldap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Auth.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
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;
@@ -127,13 +127,13 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * {@inheritDoc}
129 129
      */
130
-    public function injectAdapter($adapter, ?string $name=null) : AdapterAwareInterface
130
+    public function injectAdapter($adapter, ?string $name = null) : AdapterAwareInterface
131 131
     {
132
-        if(!($adapter instanceof AdapterInterface)) {
132
+        if (!($adapter instanceof AdapterInterface)) {
133 133
             throw new Exception('adapter needs to implement AdapterInterface');
134 134
         }
135 135
 
136
-        if($name === null) {
136
+        if ($name === null) {
137 137
             $name = get_class($adapter);
138 138
         }
139 139
 
Please login to merge, or discard this patch.
src/Log.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,16 +71,16 @@  discard block
 block discarded – undo
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;
@@ -114,13 +114,13 @@  discard block
 block discarded – undo
114 114
     /**
115 115
      * {@inheritDoc}
116 116
      */
117
-    public function injectAdapter($adapter, ?string $name=null) : AdapterAwareInterface
117
+    public function injectAdapter($adapter, ?string $name = null) : AdapterAwareInterface
118 118
     {
119
-        if(!($adapter instanceof AdapterInterface)) {
119
+        if (!($adapter instanceof AdapterInterface)) {
120 120
             throw new Exception('adapter needs to implement AdapterInterface');
121 121
         }
122 122
 
123
-        if($name === null) {
123
+        if ($name === null) {
124 124
             $name = get_class($adapter);
125 125
         }
126 126
 
Please login to merge, or discard this patch.
src/Container/AdapterAwareInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      * @param  string $name
38 38
      * @return AdapterAwareInterface
39 39
      */
40
-    public function injectAdapter($adapter, ?string $name=null): AdapterAwareInterface;
40
+    public function injectAdapter($adapter, ?string $name = null) : AdapterAwareInterface;
41 41
 
42 42
 
43 43
     /**
Please login to merge, or discard this patch.