Completed
Push — master ( c5dc47...06408e )
by Dieter
07:50
created
src/Amadeus/Client/Struct/Pnr/AddMultiElements/TravellerInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,6 +185,6 @@
 block discarded – undo
185 185
 
186 186
         $monthAndYear = strtoupper($dateOfBirth->format('My'));
187 187
 
188
-        return $day . $monthAndYear;
188
+        return $day.$monthAndYear;
189 189
     }
190 190
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Session/Handler/SoapHeader4.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -516,7 +516,7 @@
 block discarded – undo
516 516
     /**
517 517
      * Check is called message is not Security_Authenticate.
518 518
      *
519
-     * @param $messageName
519
+     * @param string $messageName
520 520
      * @return bool
521 521
      */
522 522
     protected function isNotSecurityAuthenticateMessage($messageName)
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -412,10 +412,10 @@  discard block
 block discarded – undo
412 412
         $charId = strtoupper(md5(uniqid(rand(), true)));
413 413
         $hyphen = chr(45); // "-"
414 414
 
415
-        $uuid = substr($charId, 0, 8) . $hyphen
416
-            . substr($charId, 8, 4) . $hyphen
417
-            . substr($charId, 12, 4) . $hyphen
418
-            . substr($charId, 16, 4) . $hyphen
415
+        $uuid = substr($charId, 0, 8).$hyphen
416
+            . substr($charId, 8, 4).$hyphen
417
+            . substr($charId, 12, 4).$hyphen
418
+            . substr($charId, 16, 4).$hyphen
419 419
             . substr($charId, 20, 12);
420 420
 
421 421
         return $uuid;
@@ -432,10 +432,10 @@  discard block
 block discarded – undo
432 432
     {
433 433
         return $xml = '<oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
434 434
 	<oas:UsernameToken xmlns:oas1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" oas1:Id="UsernameToken-1">
435
-		<oas:Username>' . $originator . '</oas:Username>
436
-		<oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce . '</oas:Nonce>
437
-		<oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest . '</oas:Password>
438
-		<oas1:Created>' . $creationTimeString . '</oas1:Created>
435
+		<oas:Username>' . $originator.'</oas:Username>
436
+		<oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce.'</oas:Nonce>
437
+		<oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest.'</oas:Password>
438
+		<oas1:Created>' . $creationTimeString.'</oas1:Created>
439 439
 	</oas:UsernameToken>
440 440
 </oas:Security>';
441 441
     }
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
     {
451 451
         return substr(
452 452
             sha1(
453
-                $nonceBase . $creationString,
453
+                $nonceBase.$creationString,
454 454
                 true
455 455
             ),
456 456
             0,
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
      */
480 480
     protected function generatePasswordDigest($password, $creationString, $messageNonce)
481 481
     {
482
-        return base64_encode(sha1($messageNonce . $creationString . sha1($password, true), true));
482
+        return base64_encode(sha1($messageNonce.$creationString.sha1($password, true), true));
483 483
     }
484 484
 
485 485
     /**
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
     {
492 492
         $creationDateTime->setTimezone(new \DateTimeZone('UTC'));
493 493
 
494
-        return $creationDateTime->format("Y-m-d\TH:i:s:") . $micro . 'Z';
494
+        return $creationDateTime->format("Y-m-d\TH:i:s:").$micro.'Z';
495 495
     }
496 496
 
497 497
     /**
Please login to merge, or discard this patch.