Passed
Push — master ( 5aaa36...edde3a )
by Tim
02:09
created
src/Auth/Source/X509userCert.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $this->ldapcf = new ConfigHelper(
76 76
             $config,
77
-            'Authentication source ' . var_export($this->authId, true)
77
+            'Authentication source '.var_export($this->authId, true)
78 78
         );
79 79
     }
80 80
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             // value is scalar
148 148
             if (array_key_exists($x509_attr, $client_cert_data['subject'])) {
149 149
                 $value = $client_cert_data['subject'][$x509_attr];
150
-                Logger::info('authX509: cert ' . $x509_attr . ' = ' . $value);
150
+                Logger::info('authX509: cert '.$x509_attr.' = '.$value);
151 151
 
152 152
                 if (isset($this->dnpattern)) {
153 153
                     $dn = str_replace('%username%', $value, $this->dnpattern);
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $ldap_certs = $ldapcf->getAttributes($dn, $this->ldapusercert);
182 182
 
183 183
         if (empty($ldap_certs)) {
184
-            Logger::error('authX509: no certificate found in LDAP for dn=' . $dn);
184
+            Logger::error('authX509: no certificate found in LDAP for dn='.$dn);
185 185
             $state['authX509.error'] = "UNKNOWNCERT";
186 186
             $this->authFailed($state);
187 187
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             $pem = $cryptoUtils->der2pem($ldap_cert);
201 201
             $ldap_cert_data = openssl_x509_parse($pem);
202 202
             if ($ldap_cert_data === false) {
203
-                Logger::error('authX509: cert in LDAP is invalid for dn=' . $dn);
203
+                Logger::error('authX509: cert in LDAP is invalid for dn='.$dn);
204 204
                 continue;
205 205
             }
206 206
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             }
214 214
         }
215 215
 
216
-        Logger::error('authX509: no matching cert in LDAP for dn=' . $dn);
216
+        Logger::error('authX509: no matching cert in LDAP for dn='.$dn);
217 217
         $state['authX509.error'] = "UNKNOWNCERT";
218 218
         $this->authFailed($state);
219 219
 
Please login to merge, or discard this patch.
src/Auth/Process/ExpiryWarning.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                 $config['warndaysbefore'],
48 48
                 'Invalid value for \'warndaysbefore\'-option to authX509::ExpiryWarning filter.'
49 49
             );
50
-            $this->warndaysbefore = (int)$config['warndaysbefore'];
50
+            $this->warndaysbefore = (int) $config['warndaysbefore'];
51 51
         }
52 52
 
53 53
         if (array_key_exists('renewurl', $config)) {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             return;
96 96
         }
97 97
 
98
-        Logger::warning('authX509: user certificate expires in ' . $daysleft . ' days');
98
+        Logger::warning('authX509: user certificate expires in '.$daysleft.' days');
99 99
         $state['daysleft'] = $daysleft;
100 100
         $state['renewurl'] = $this->renewurl;
101 101
 
Please login to merge, or discard this patch.