Passed
Push — master ( d6a2be...ec22be )
by Tim
08:04
created
lib/Auth/Process/Fticks.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
                  * @param  string $k
379 379
                  * @return bool
380 380
                  */
381
-                function ($k) {
381
+                function($k) {
382 382
                     return !in_array($k, $this->exclude);
383 383
                 },
384 384
                 ARRAY_FILTER_USE_KEY
@@ -387,19 +387,19 @@  discard block
 block discarded – undo
387 387
 
388 388
         /* assemble an F-ticks log string */
389 389
         $this->log(
390
-            'F-TICKS/' . $this->federation . '/' . self::$fticksVersion . '#' .
390
+            'F-TICKS/'.$this->federation.'/'.self::$fticksVersion.'#'.
391 391
             implode('#', array_map(
392 392
                 /**
393 393
                  * @param  string $k
394 394
                  * @param  string $v
395 395
                  * @return string
396 396
                  */
397
-                function ($k, $v) {
398
-                    return $k . '=' . $this->escapeFticks(strval($v));
397
+                function($k, $v) {
398
+                    return $k.'='.$this->escapeFticks(strval($v));
399 399
                 },
400 400
                 array_keys($fticks),
401 401
                 $fticks
402
-            )) . '#'
402
+            )).'#'
403 403
         );
404 404
     }
405 405
 }
Please login to merge, or discard this patch.