@@ -83,9 +83,9 @@ discard block |
||
83 | 83 | ); // pri |
84 | 84 | $rfc5424_message .= '1 '; // ver |
85 | 85 | $rfc5424_message .= gmdate('Y-m-d\TH:i:s.v\Z '); // timestamp |
86 | - $rfc5424_message .= gethostname() . ' '; // hostname |
|
87 | - $rfc5424_message .= $this->logconfig['processname'] . ' '; // app-name |
|
88 | - $rfc5424_message .= posix_getpid() . ' '; // procid |
|
86 | + $rfc5424_message .= gethostname().' '; // hostname |
|
87 | + $rfc5424_message .= $this->logconfig['processname'].' '; // app-name |
|
88 | + $rfc5424_message .= posix_getpid().' '; // procid |
|
89 | 89 | $rfc5424_message .= '- '; // msgid |
90 | 90 | $rfc5424_message .= '- '; // structured-data |
91 | 91 | $rfc5424_message .= $msg; |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | /* mostly for unit testing */ |
109 | 109 | case 'stdout': |
110 | - echo $msg . "\n"; |
|
110 | + echo $msg."\n"; |
|
111 | 111 | break; |
112 | 112 | |
113 | 113 | /* SimpleSAMLphp's builtin logging */ |
@@ -147,12 +147,12 @@ discard block |
||
147 | 147 | if (isset($uid) && is_string($uid)) { |
148 | 148 | $userdata = $this->federation; |
149 | 149 | if (array_key_exists('saml:sp:IdP', $state)) { |
150 | - $userdata .= strlen($state['saml:sp:IdP']) . ':' . $state['saml:sp:IdP']; |
|
150 | + $userdata .= strlen($state['saml:sp:IdP']).':'.$state['saml:sp:IdP']; |
|
151 | 151 | } else { |
152 | - $userdata .= strlen($state['Source']['entityid']) . ':' . $state['Source']['entityid']; |
|
152 | + $userdata .= strlen($state['Source']['entityid']).':'.$state['Source']['entityid']; |
|
153 | 153 | } |
154 | - $userdata .= strlen($state['Destination']['entityid']) . ':' . $state['Destination']['entityid']; |
|
155 | - $userdata .= strlen($uid) . ':' . $uid; |
|
154 | + $userdata .= strlen($state['Destination']['entityid']).':'.$state['Destination']['entityid']; |
|
155 | + $userdata .= strlen($uid).':'.$uid; |
|
156 | 156 | $userdata .= $this->salt; |
157 | 157 | |
158 | 158 | return hash($this->algorithm, $userdata); |
@@ -409,8 +409,8 @@ discard block |
||
409 | 409 | * @param string $v |
410 | 410 | * @return string |
411 | 411 | */ |
412 | - function ($k, $v) { |
|
413 | - return $k . '=' . $this->escapeFticks(strval($v)); |
|
412 | + function($k, $v) { |
|
413 | + return $k.'='.$this->escapeFticks(strval($v)); |
|
414 | 414 | }, |
415 | 415 | array_keys($fticks), |
416 | 416 | $fticks |