Completed
Push — develop ( cb98b7...2e1421 )
by Dieter
11:16
created
src/Amadeus/Client/Struct/Pnr/DisplayHistory/PredicateElementType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,23 +58,23 @@
 block discarded – undo
58 58
      * Original Issue / Issue in Exchange For element
59 59
      */
60 60
     const SEGNAME_ORIGINAL_ISSUE = "FO";
61
-    const SEGNAME_FORM_OF_PAYMENT= "FP";
62
-    const SEGNAME_FERRY= "FRR";
61
+    const SEGNAME_FORM_OF_PAYMENT = "FP";
62
+    const SEGNAME_FERRY = "FRR";
63 63
     const SEGNAME_MISCELLANEOUS_TICKETING_INFORMATION = "FS";
64 64
     const SEGNAME_TOUR_CODE = "FT";
65 65
     const SEGNAME_TICKETING_CARRIER_DESIGNATOR = "FV";
66 66
     const SEGNAME_MISCELLANEOUS_INFORMATION = "FZ";
67 67
     const SEGNAME_NON_AUTOMATED_AY_DIRECT_ACCESS_HOTEL = "HAY";
68
-    const SEGNAME_AUTOMATED_HOTEL_AUXILIARY= "HHL";
68
+    const SEGNAME_AUTOMATED_HOTEL_AUXILIARY = "HHL";
69 69
     const SEGNAME_NON_AUTOMATED_HOTEL_AUXILIARY = "HU";
70
-    const SEGNAME_GROUP_NAME= "NG";
71
-    const SEGNAME_OPTION= "OP";
70
+    const SEGNAME_GROUP_NAME = "NG";
71
+    const SEGNAME_OPTION = "OP";
72 72
     const SEGNAME_OTHER_SPECIAL_INFORMATION = "OS";
73
-    const SEGNAME_PRIORITY_LINE= "PL";
73
+    const SEGNAME_PRIORITY_LINE = "PL";
74 74
     const SEGNAME_CONFIDENTIAL_REMARK = "RC";
75 75
     const SEGNAME_RECEIVE_FROM = "RF";
76 76
     const SEGNAME_INVOICE_REMARK = "RI";
77
-    const SEGNAME_GENERAL_REMARK= "RM";
77
+    const SEGNAME_GENERAL_REMARK = "RM";
78 78
     const SEGNAME_QUALITY_CONTROL_REMARK = "RQ";
79 79
     const SEGNAME_ASSOCIATED_CROSS_REFERENCE_RECORD = "RR";
80 80
     const SEGNAME_NON_AUTOMATED_MISCELLANEOUS_AUXILIARY = "RU";
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Offer/ConfirmHotel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
                     $params->paymentDetails->ccExpiry
131 131
                 );
132 132
             } else {
133
-                throw new InvalidArgumentException('Hotel Offer Confirm Form of Payment ' . $params->formOfPayment . ' is not yet supported');
133
+                throw new InvalidArgumentException('Hotel Offer Confirm Form of Payment '.$params->formOfPayment.' is not yet supported');
134 134
             }
135 135
         }
136 136
     }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Pnr/AddMultiElements.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                 throw new \RuntimeException('NOT YET IMPLEMENTED');
224 224
                 break;
225 225
             default:
226
-                throw new InvalidArgumentException('Segment type ' . $segmentType . ' is not supported');
226
+                throw new InvalidArgumentException('Segment type '.$segmentType.' is not supported');
227 227
                 break;
228 228
         }
229 229
 
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
                 $createdElement->frequentTravellerData = new FrequentTravellerData($element);
503 503
                 break;
504 504
             default:
505
-                throw new InvalidArgumentException('Element type ' . $elementType . ' is not supported');
505
+                throw new InvalidArgumentException('Element type '.$elementType.' is not supported');
506 506
         }
507 507
 
508 508
         if (!empty($element->references)) {
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Pnr/AddMultiElements/AirAuxItinerary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
                 $this->loadAir($segmentContent);
71 71
                 break;
72 72
             default:
73
-                throw new InvalidArgumentException('Segment type ' . $segmentType . 'is not supported');
73
+                throw new InvalidArgumentException('Segment type '.$segmentType.'is not supported');
74 74
                 break;
75 75
         }
76 76
     }
Please login to merge, or discard this patch.
src/Amadeus/Client/SoapClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $newRequest = null;
93 93
 
94
-        $xsltFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . self::REMOVE_EMPTY_XSLT_LOCATION;
94
+        $xsltFile = dirname(__FILE__).DIRECTORY_SEPARATOR.self::REMOVE_EMPTY_XSLT_LOCATION;
95 95
         if (!is_readable($xsltFile)) {
96
-            throw new Exception('XSLT file "' . $xsltFile . '" is not readable!');
96
+            throw new Exception('XSLT file "'.$xsltFile.'" is not readable!');
97 97
         }
98 98
 
99 99
         $dom = new \DOMDocument('1.0', 'UTF-8');
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         if ($transform === false) {
109 109
             $this->logger->log(
110 110
                 Log\LogLevel::ERROR,
111
-                __METHOD__ . "__doRequest(): XSLTProcessor::transformToXml "
111
+                __METHOD__."__doRequest(): XSLTProcessor::transformToXml "
112 112
                 . "returned FALSE: could not perform transformation!!"
113 113
             );
114 114
             $newRequest = $request;
Please login to merge, or discard this patch.
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/Base.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -446,9 +446,9 @@  discard block
 block discarded – undo
446 446
      */
447 447
     protected function extractMessageVersion($fullVersionString)
448 448
     {
449
-        $marker = strpos($fullVersionString, '_', strpos($fullVersionString, '_')+1);
449
+        $marker = strpos($fullVersionString, '_', strpos($fullVersionString, '_') + 1);
450 450
 
451
-        $num = substr($fullVersionString, $marker+1);
451
+        $num = substr($fullVersionString, $marker + 1);
452 452
 
453 453
         return str_replace('_', '.', $num);
454 454
     }
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
                     'http://schemas.xmlsoap.org/wsdl/soap/'
481 481
                 );
482 482
             } else {
483
-                throw new Client\InvalidWsdlFileException('WSDL ' . $wsdlFilePath . ' could not be loaded');
483
+                throw new Client\InvalidWsdlFileException('WSDL '.$wsdlFilePath.' could not be loaded');
484 484
             }
485 485
         }
486 486
     }
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
         $domDoc = null;
568 568
         $domXpath = null;
569 569
 
570
-        $importPath = realpath(dirname($wsdlPath)) . DIRECTORY_SEPARATOR . $import;
570
+        $importPath = realpath(dirname($wsdlPath)).DIRECTORY_SEPARATOR.$import;
571 571
         $wsdlContent = file_get_contents($importPath);
572 572
 
573 573
         if ($wsdlContent !== false) {
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
                 );
587 587
             }
588 588
         } else {
589
-            throw new Client\InvalidWsdlFileException('WSDL ' . $importPath . ' import could not be loaded');
589
+            throw new Client\InvalidWsdlFileException('WSDL '.$importPath.' import could not be loaded');
590 590
         }
591 591
 
592 592
         if ($domXpath instanceof \DOMXPath) {
@@ -620,11 +620,11 @@  discard block
 block discarded – undo
620 620
     {
621 621
         $this->log(
622 622
             LogLevel::INFO,
623
-            'Called ' . $messageName . ' with request: ' . $this->getSoapClient($messageName)->__getLastRequest()
623
+            'Called '.$messageName.' with request: '.$this->getSoapClient($messageName)->__getLastRequest()
624 624
         );
625 625
         $this->log(
626 626
             LogLevel::INFO,
627
-            'Response:  ' . $this->getSoapClient($messageName)->__getLastResponse()
627
+            'Response:  '.$this->getSoapClient($messageName)->__getLastResponse()
628 628
         );
629 629
     }
630 630
 
Please login to merge, or discard this patch.
src/Amadeus/Client/Session/Handler/SoapHeader4.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -347,10 +347,10 @@  discard block
 block discarded – undo
347 347
         $charId = strtoupper(md5(uniqid(rand(), true)));
348 348
         $hyphen = chr(45); // "-"
349 349
 
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
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
354 354
             .substr($charId, 20, 12);
355 355
 
356 356
         return $uuid;
@@ -367,10 +367,10 @@  discard block
 block discarded – undo
367 367
     {
368 368
         return $xml = '<oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
369 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">
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>
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>
374 374
     </oas:UsernameToken>
375 375
 </oas:Security>';
376 376
     }
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
     {
386 386
         return substr(
387 387
             sha1(
388
-                $nonceBase . $creationString,
388
+                $nonceBase.$creationString,
389 389
                 true
390 390
             ),
391 391
             0,
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
      */
414 414
     protected function generatePasswordDigest($password, $creationString, $messageNonce)
415 415
     {
416
-        return base64_encode(sha1($messageNonce . $creationString . sha1($password, true), true));
416
+        return base64_encode(sha1($messageNonce.$creationString.sha1($password, true), true));
417 417
     }
418 418
 
419 419
     /**
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
     protected function createDateTimeStringForAuth($creationDateTime, $micro)
425 425
     {
426 426
         $creationDateTime->setTimezone(new \DateTimeZone('UTC'));
427
-        return $creationDateTime->format("Y-m-d\TH:i:s:") . $micro . 'Z';
427
+        return $creationDateTime->format("Y-m-d\TH:i:s:").$micro.'Z';
428 428
     }
429 429
 
430 430
     /**
Please login to merge, or discard this patch.