@@ -80,9 +80,9 @@ discard block |
||
| 80 | 80 | ); // pri |
| 81 | 81 | $rfc5424_message .= '1 '; // ver |
| 82 | 82 | $rfc5424_message .= gmdate('Y-m-d\TH:i:s.v\Z '); // timestamp |
| 83 | - $rfc5424_message .= gethostname() . ' '; // hostname |
|
| 84 | - $rfc5424_message .= $this->logconfig['processname'] . ' '; // app-name |
|
| 85 | - $rfc5424_message .= posix_getpid() . ' '; // procid |
|
| 83 | + $rfc5424_message .= gethostname().' '; // hostname |
|
| 84 | + $rfc5424_message .= $this->logconfig['processname'].' '; // app-name |
|
| 85 | + $rfc5424_message .= posix_getpid().' '; // procid |
|
| 86 | 86 | $rfc5424_message .= '- '; // msgid |
| 87 | 87 | $rfc5424_message .= '- '; // structured-data |
| 88 | 88 | $rfc5424_message .= $msg; |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | /* mostly for unit testing */ |
| 106 | 106 | case 'stdout': |
| 107 | - echo $msg . "\n"; |
|
| 107 | + echo $msg."\n"; |
|
| 108 | 108 | break; |
| 109 | 109 | |
| 110 | 110 | /* SimpleSAMLphp's builtin logging */ |
@@ -144,12 +144,12 @@ discard block |
||
| 144 | 144 | if (isset($uid) && is_string($uid)) { |
| 145 | 145 | $userdata = $this->federation; |
| 146 | 146 | if (array_key_exists('saml:sp:IdP', $state)) { |
| 147 | - $userdata .= strlen($state['saml:sp:IdP']) . ':' . $state['saml:sp:IdP']; |
|
| 147 | + $userdata .= strlen($state['saml:sp:IdP']).':'.$state['saml:sp:IdP']; |
|
| 148 | 148 | } else { |
| 149 | - $userdata .= strlen($state['Source']['entityid']) . ':' . $state['Source']['entityid']; |
|
| 149 | + $userdata .= strlen($state['Source']['entityid']).':'.$state['Source']['entityid']; |
|
| 150 | 150 | } |
| 151 | - $userdata .= strlen($state['Destination']['entityid']) . ':' . $state['Destination']['entityid']; |
|
| 152 | - $userdata .= strlen($uid) . ':' . $uid; |
|
| 151 | + $userdata .= strlen($state['Destination']['entityid']).':'.$state['Destination']['entityid']; |
|
| 152 | + $userdata .= strlen($uid).':'.$uid; |
|
| 153 | 153 | $userdata .= $this->salt; |
| 154 | 154 | |
| 155 | 155 | return hash($this->algorithm, $userdata); |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | * @param string $k |
| 376 | 376 | * @return bool |
| 377 | 377 | */ |
| 378 | - function ($k) { |
|
| 378 | + function($k) { |
|
| 379 | 379 | return !in_array($k, $this->exclude); |
| 380 | 380 | }, |
| 381 | 381 | ARRAY_FILTER_USE_KEY |
@@ -384,19 +384,19 @@ discard block |
||
| 384 | 384 | |
| 385 | 385 | /* assemble an F-ticks log string */ |
| 386 | 386 | $this->log( |
| 387 | - 'F-TICKS/' . $this->federation . '/' . self::$fticksVersion . '#' . |
|
| 387 | + 'F-TICKS/'.$this->federation.'/'.self::$fticksVersion.'#'. |
|
| 388 | 388 | implode('#', array_map( |
| 389 | 389 | /** |
| 390 | 390 | * @param string $k |
| 391 | 391 | * @param string $v |
| 392 | 392 | * @return string |
| 393 | 393 | */ |
| 394 | - function ($k, $v) { |
|
| 395 | - return $k . '=' . $this->escapeFticks($v); |
|
| 394 | + function($k, $v) { |
|
| 395 | + return $k.'='.$this->escapeFticks($v); |
|
| 396 | 396 | }, |
| 397 | 397 | array_keys($fticks), |
| 398 | 398 | $fticks |
| 399 | - )) . '#' |
|
| 399 | + )).'#' |
|
| 400 | 400 | ); |
| 401 | 401 | } |
| 402 | 402 | } |