@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | ); // pri |
| 109 | 109 | $rfc5424_message .= '1 '; // ver |
| 110 | 110 | $rfc5424_message .= gmdate('Y-m-d\TH:i:s.v\Z '); // timestamp |
| 111 | - $rfc5424_message .= gethostname() . ' '; // hostname |
|
| 112 | - $rfc5424_message .= $this->logconfig['processname'] . ' '; // app-name |
|
| 113 | - $rfc5424_message .= posix_getpid() . ' '; // procid |
|
| 111 | + $rfc5424_message .= gethostname().' '; // hostname |
|
| 112 | + $rfc5424_message .= $this->logconfig['processname'].' '; // app-name |
|
| 113 | + $rfc5424_message .= posix_getpid().' '; // procid |
|
| 114 | 114 | $rfc5424_message .= '- '; // msgid |
| 115 | 115 | $rfc5424_message .= '- '; // structured-data |
| 116 | 116 | $rfc5424_message .= $msg; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | /* mostly for unit testing */ |
| 134 | 134 | case 'stdout': |
| 135 | - echo $msg . "\n"; |
|
| 135 | + echo $msg."\n"; |
|
| 136 | 136 | break; |
| 137 | 137 | |
| 138 | 138 | /* SimpleSAMLphp's builtin logging */ |
@@ -168,12 +168,12 @@ discard block |
||
| 168 | 168 | if ($uid !== null) { |
| 169 | 169 | $userdata = $this->federation; |
| 170 | 170 | if (array_key_exists('saml:sp:IdP', $state)) { |
| 171 | - $userdata .= strlen($state['saml:sp:IdP']) . ':' . $state['saml:sp:IdP']; |
|
| 171 | + $userdata .= strlen($state['saml:sp:IdP']).':'.$state['saml:sp:IdP']; |
|
| 172 | 172 | } else { |
| 173 | - $userdata .= strlen($state['Source']['entityid']) . ':' . $state['Source']['entityid']; |
|
| 173 | + $userdata .= strlen($state['Source']['entityid']).':'.$state['Source']['entityid']; |
|
| 174 | 174 | } |
| 175 | - $userdata .= strlen($state['Destination']['entityid']) . ':' . $state['Destination']['entityid']; |
|
| 176 | - $userdata .= strlen($uid) . ':' . $uid; |
|
| 175 | + $userdata .= strlen($state['Destination']['entityid']).':'.$state['Destination']['entityid']; |
|
| 176 | + $userdata .= strlen($uid).':'.$uid; |
|
| 177 | 177 | $userdata .= $this->salt; |
| 178 | 178 | |
| 179 | 179 | return hash($this->algorithm, $userdata); |
@@ -434,8 +434,8 @@ discard block |
||
| 434 | 434 | * @param string $v |
| 435 | 435 | * @return string |
| 436 | 436 | */ |
| 437 | - function ($k, $v) { |
|
| 438 | - return $k . '=' . $this->escapeFticks(strval($v)); |
|
| 437 | + function($k, $v) { |
|
| 438 | + return $k.'='.$this->escapeFticks(strval($v)); |
|
| 439 | 439 | }, |
| 440 | 440 | array_keys($fticks), |
| 441 | 441 | $fticks |