Completed
Push — develop ( d5d5cc...0efd33 )
by Dieter
05:58
created
src/Amadeus/Client/SoapClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function __doRequest($request, $location, $action, $version, $oneWay = null)
75 75
     {
76
-        if (!extension_loaded ('xsl')) {
76
+        if (!extension_loaded('xsl')) {
77 77
             throw new Exception('PHP XSL extension is not enabled.');
78 78
         }
79 79
 
80
-        $newRequest = $this->transformIncomingRequest( $request);
80
+        $newRequest = $this->transformIncomingRequest($request);
81 81
 
82 82
         return parent::__doRequest($newRequest, $location, $action, $version, $oneWay);
83 83
     }
@@ -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/RequestOptions/Offer/PassengerDef.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,17 +33,17 @@
 block discarded – undo
33 33
 class PassengerDef extends LoadParamsFromArray
34 34
 {
35 35
     /**
36
-    * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2326&serviceVersionId=2298&isQuery=true#
37
-    *
38
-    * Offer_CreateOffer/airPricingRecommendation/paxReference/passengerReference/type
39
-    * Reference qualifier codesets
40
-    * Value   Description
41
-    * P       Passenger/traveller reference number
42
-    * PA      Adult Passenger
43
-    * PI      Infant Passenger
36
+     * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2326&serviceVersionId=2298&isQuery=true#
37
+     *
38
+     * Offer_CreateOffer/airPricingRecommendation/paxReference/passengerReference/type
39
+     * Reference qualifier codesets
40
+     * Value   Description
41
+     * P       Passenger/traveller reference number
42
+     * PA      Adult Passenger
43
+     * PI      Infant Passenger
44 44
      *
45 45
      * @var string
46
-    */
46
+     */
47 47
     public $passengerType = "P";
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
src/Amadeus/Client/Session/Handler/HandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             default:
62 62
                 //TODO implement Client::HEADER_V1
63 63
                 throw new \InvalidArgumentException(
64
-                    'No Session Handler found for soapHeaderVersion ' . $handlerParams->soapHeaderVersion
64
+                    'No Session Handler found for soapHeaderVersion '.$handlerParams->soapHeaderVersion
65 65
                 );
66 66
         }
67 67
 
Please login to merge, or discard this patch.
src/Amadeus/Client/Session/Handler/SoapHeader2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
             if ($sessionId) {
123 123
                 $newSessionData['sessionId'] = $sessionId;
124 124
             }
125
-            $sequence = (int)$responseDomDoc->getElementsByTagName(self::NODENAME_SEQENCENR)->item(0)->nodeValue;
125
+            $sequence = (int) $responseDomDoc->getElementsByTagName(self::NODENAME_SEQENCENR)->item(0)->nodeValue;
126 126
             if ($sequence) {
127 127
                 $newSessionData['sequenceNumber'] = $sequence;
128 128
             }
Please login to merge, or discard this patch.
src/Amadeus/Client/RequestOptions/Pnr/DisplayHistory/PredicateType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     const REFQUAL_OTHER_TATTOO = "O";
38 38
     const REFQUAL_PASSENGER_TATTOO = "PT";
39 39
     const REFQUAL_SEGMENT_TATTOO_SUBTATTOO = "SS";
40
-    const REFQUAL_SEGMENT_TATTOO= "ST";
40
+    const REFQUAL_SEGMENT_TATTOO = "ST";
41 41
     const REFQUAL_PASSENGER_CLIENT_REQUEST_MESSAGE = "PR";
42 42
     const REFQUAL_SEGMENT_CLIENT_REQUEST_MESSAGE = "SR";
43 43
 
Please login to merge, or discard this patch.
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/Session/Handler/Base.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -343,8 +343,8 @@  discard block
 block discarded – undo
343 343
      */
344 344
     protected function extractMessageVersion($fullVersionString)
345 345
     {
346
-        $secondUnderscore = strpos($fullVersionString, '_', strpos($fullVersionString, '_')+1);
347
-        $num = substr($fullVersionString, $secondUnderscore+1);
346
+        $secondUnderscore = strpos($fullVersionString, '_', strpos($fullVersionString, '_') + 1);
347
+        $num = substr($fullVersionString, $secondUnderscore + 1);
348 348
 
349 349
         return str_replace('_', '.', $num);
350 350
     }
@@ -419,11 +419,11 @@  discard block
 block discarded – undo
419 419
     {
420 420
         $this->log(
421 421
             LogLevel::INFO,
422
-            'Called ' . $messageName . ' with request: ' . $this->getSoapClient()->__getLastRequest()
422
+            'Called '.$messageName.' with request: '.$this->getSoapClient()->__getLastRequest()
423 423
         );
424 424
         $this->log(
425 425
             LogLevel::INFO,
426
-            'Response:  ' . $this->getSoapClient()->__getLastResponse()
426
+            'Response:  '.$this->getSoapClient()->__getLastResponse()
427 427
         );
428 428
     }
429 429
 
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.