Passed
Push — develop ( 0da7a2...cb98b7 )
by Dieter
11:43
created
src/Amadeus/Client/ResponseHandler/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function analyzeResponse($sendResult, $messageName)
56 56
     {
57
-        $methodName = 'analyze' . str_replace('_', '', ucfirst($messageName)) . 'Response';
57
+        $methodName = 'analyze'.str_replace('_', '', ucfirst($messageName)).'Response';
58 58
 
59 59
         if (!empty($sendResult->exception)) {
60 60
             return $this->makeResultForException($sendResult);
@@ -825,7 +825,7 @@  discard block
 block discarded – undo
825 825
         $errorMessage = (array_key_exists($errorCode, $recognizedErrors)) ? $recognizedErrors[$errorCode] : '';
826 826
 
827 827
         if ($errorMessage === '') {
828
-            $errorMessage = "QUEUE ERROR '" . $errorCode . "' (Error message unavailable)";
828
+            $errorMessage = "QUEUE ERROR '".$errorCode."' (Error message unavailable)";
829 829
         }
830 830
 
831 831
         return $errorMessage;
@@ -915,7 +915,7 @@  discard block
 block discarded – undo
915 915
         return implode(
916 916
             ' - ',
917 917
             array_map(
918
-                function ($item) {
918
+                function($item) {
919 919
                     return trim($item->nodeValue);
920 920
                 },
921 921
                 iterator_to_array($errorTextNodeList)
Please login to merge, or discard this patch.
src/Amadeus/Client/Session/Handler/SoapHeader4.php 1 patch
Spacing   +13 added lines, -14 removed lines patch added patch discarded remove patch
@@ -278,8 +278,7 @@  discard block
 block discarded – undo
278 278
             //We are authenticated and stateful: provide session header to continue or terminate session
279 279
             $statusCode =
280 280
                 (isset($messageOptions['endSession']) && $messageOptions['endSession'] === true) ?
281
-                    "End" :
282
-                    "InSeries";
281
+                    "End" : "InSeries";
283 282
 
284 283
             array_push(
285 284
                 $headersToSet,
@@ -344,14 +343,14 @@  discard block
 block discarded – undo
344 343
      */
345 344
     protected function generateGuid()
346 345
     {
347
-        mt_srand((double)microtime()*10000);
346
+        mt_srand((double) microtime() * 10000);
348 347
         $charId = strtoupper(md5(uniqid(rand(), true)));
349 348
         $hyphen = chr(45); // "-"
350 349
 
351
-        $uuid = substr($charId, 0, 8) . $hyphen
352
-            .substr($charId, 8, 4) . $hyphen
353
-            .substr($charId, 12, 4) . $hyphen
354
-            .substr($charId, 16, 4) . $hyphen
350
+        $uuid = substr($charId, 0, 8).$hyphen
351
+            .substr($charId, 8, 4).$hyphen
352
+            .substr($charId, 12, 4).$hyphen
353
+            .substr($charId, 16, 4).$hyphen
355 354
             .substr($charId, 20, 12);
356 355
 
357 356
         return $uuid;
@@ -368,10 +367,10 @@  discard block
 block discarded – undo
368 367
     {
369 368
         return $xml = '<oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
370 369
     <oas:UsernameToken xmlns:oas1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" oas1:Id="UsernameToken-1">
371
-		<oas:Username>' . $originator . '</oas:Username>
372
-		<oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce . '</oas:Nonce>
373
-		<oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest . '</oas:Password>
374
-		<oas1:Created>' . $creationTimeString . '</oas1:Created>
370
+		<oas:Username>' . $originator.'</oas:Username>
371
+		<oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce.'</oas:Nonce>
372
+		<oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest.'</oas:Password>
373
+		<oas1:Created>' . $creationTimeString.'</oas1:Created>
375 374
     </oas:UsernameToken>
376 375
 </oas:Security>';
377 376
     }
@@ -386,7 +385,7 @@  discard block
 block discarded – undo
386 385
     {
387 386
         return substr(
388 387
             sha1(
389
-                $nonceBase . $creationString,
388
+                $nonceBase.$creationString,
390 389
                 true
391 390
             ),
392 391
             0,
@@ -414,7 +413,7 @@  discard block
 block discarded – undo
414 413
      */
415 414
     protected function generatePasswordDigest($password, $creationString, $messageNonce)
416 415
     {
417
-        return base64_encode(sha1($messageNonce . $creationString . sha1($password, true), true));
416
+        return base64_encode(sha1($messageNonce.$creationString.sha1($password, true), true));
418 417
     }
419 418
 
420 419
     /**
@@ -425,7 +424,7 @@  discard block
 block discarded – undo
425 424
     protected function createDateTimeStringForAuth($creationDateTime, $micro)
426 425
     {
427 426
         $creationDateTime->setTimezone(new \DateTimeZone('UTC'));
428
-        return $creationDateTime->format("Y-m-d\TH:i:s:") . $micro . 'Z';
427
+        return $creationDateTime->format("Y-m-d\TH:i:s:").$micro.'Z';
429 428
     }
430 429
 
431 430
     /**
Please login to merge, or discard this patch.