@@ -60,7 +60,7 @@ |
||
60 | 60 | * |
61 | 61 | * @param FareConvertCurrencyOptions $params |
62 | 62 | */ |
63 | - public function __construct (FareConvertCurrencyOptions $params) |
|
63 | + public function __construct(FareConvertCurrencyOptions $params) |
|
64 | 64 | { |
65 | 65 | $this->message = new MsgType(MessageFunctionDetails::FARE_CURRENCY_CONVERSION); |
66 | 66 |
@@ -191,7 +191,7 @@ |
||
191 | 191 | $this->requestCreator = $this->loadRequestCreator( |
192 | 192 | $params->requestCreator, |
193 | 193 | $params->requestCreatorParams, |
194 | - self::receivedFromIdentifier . "-" .self::version, |
|
194 | + self::receivedFromIdentifier."-".self::version, |
|
195 | 195 | $this->sessionHandler->getOriginatorOffice(), |
196 | 196 | $this->sessionHandler->getMessagesAndVersions() |
197 | 197 | ); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function analyzeResponse($sendResult, $messageName) |
55 | 55 | { |
56 | - $methodName = 'analyze' . str_replace('_', '', ucfirst($messageName)) . 'Response'; |
|
56 | + $methodName = 'analyze'.str_replace('_', '', ucfirst($messageName)).'Response'; |
|
57 | 57 | |
58 | 58 | if (!empty($sendResult->exception)) { |
59 | 59 | return $this->makeResultForException($sendResult); |
@@ -545,7 +545,7 @@ discard block |
||
545 | 545 | $msgNode = $domXpath->query('//m:errorsDescription/m:errorWarningDescription/m:freeText')->item(0); |
546 | 546 | |
547 | 547 | if ($msgNode instanceof \DOMNode) { |
548 | - if (trim($msgNode->nodeValue) === "OFFER CONFIRMED SUCCESSFULLY" || trim($msgNode->nodeValue) === "OFFER VERIFIED SUCCESSFULLY" ) { |
|
548 | + if (trim($msgNode->nodeValue) === "OFFER CONFIRMED SUCCESSFULLY" || trim($msgNode->nodeValue) === "OFFER VERIFIED SUCCESSFULLY") { |
|
549 | 549 | $analyzeResponse->messages[] = new Result\NotOk( |
550 | 550 | 0, |
551 | 551 | trim($msgNode->nodeValue) |
@@ -713,7 +713,7 @@ discard block |
||
713 | 713 | $errorMessage = (array_key_exists($errorCode, $recognizedErrors)) ? $recognizedErrors[$errorCode] : ''; |
714 | 714 | |
715 | 715 | if ($errorMessage === '') { |
716 | - $errorMessage = "QUEUE ERROR '" . $errorCode . "' (Error message unavailable)"; |
|
716 | + $errorMessage = "QUEUE ERROR '".$errorCode."' (Error message unavailable)"; |
|
717 | 717 | } |
718 | 718 | |
719 | 719 | return $errorMessage; |
@@ -39,14 +39,14 @@ |
||
39 | 39 | public static function generateSomewhatRandomString($length = 22) |
40 | 40 | { |
41 | 41 | $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"; |
42 | - srand((double)microtime()*1000000); |
|
42 | + srand((double) microtime() * 1000000); |
|
43 | 43 | $i = 0; |
44 | - $somewhatRandom = '' ; |
|
44 | + $somewhatRandom = ''; |
|
45 | 45 | |
46 | 46 | while ($i < $length) { |
47 | 47 | $num = rand() % 60; |
48 | 48 | $tmp = substr($chars, $num, 1); |
49 | - $somewhatRandom = $somewhatRandom . $tmp; |
|
49 | + $somewhatRandom = $somewhatRandom.$tmp; |
|
50 | 50 | $i++; |
51 | 51 | } |
52 | 52 |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public function __construct($segmentType, $segmentContent) |
64 | 64 | { |
65 | - switch($segmentType) { |
|
65 | + switch ($segmentType) { |
|
66 | 66 | case 'Miscellaneous': |
67 | 67 | $this->loadMiscellaneous($segmentContent); |
68 | 68 | break; |
@@ -70,7 +70,7 @@ discard block |
||
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 | } |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | throw new \RuntimeException('NOT YET IMPLEMENTED'); |
223 | 223 | break; |
224 | 224 | default: |
225 | - throw new InvalidArgumentException('Segment type ' . $segmentType . ' is not supported'); |
|
225 | + throw new InvalidArgumentException('Segment type '.$segmentType.' is not supported'); |
|
226 | 226 | break; |
227 | 227 | } |
228 | 228 | |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | $createdElement->frequentTravellerData = new FrequentTravellerData($element); |
428 | 428 | break; |
429 | 429 | default: |
430 | - throw new InvalidArgumentException('Element type ' . $elementType . 'is not supported'); |
|
430 | + throw new InvalidArgumentException('Element type '.$elementType.'is not supported'); |
|
431 | 431 | } |
432 | 432 | |
433 | 433 | if (!empty($element->references)) { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | |
122 | 122 | $po->optionDetail = new OptionDetail(); |
123 | 123 | $po->optionDetail->criteriaDetails[] = new CriteriaDetails( |
124 | - $pricingFareBasis->fareBasisPrimaryCode . $pricingFareBasis->fareBasisCode |
|
124 | + $pricingFareBasis->fareBasisPrimaryCode.$pricingFareBasis->fareBasisCode |
|
125 | 125 | ); |
126 | 126 | |
127 | 127 | $po->paxSegTstReference = new PaxSegTstReference($pricingFareBasis->segmentReference); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | if (!empty($params->originatorId)) { |
107 | 107 | $this->makeRoomStayData(); |
108 | - if(!($this->roomStayData[0]->globalBookingInfo instanceof GlobalBookingInfo)) { |
|
108 | + if (!($this->roomStayData[0]->globalBookingInfo instanceof GlobalBookingInfo)) { |
|
109 | 109 | $this->roomStayData[0]->globalBookingInfo = new GlobalBookingInfo(); |
110 | 110 | } |
111 | 111 | |
@@ -130,7 +130,7 @@ discard block |
||
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 | } |
@@ -96,7 +96,7 @@ |
||
96 | 96 | OverrideDate::OPT_ALTERNATE_DATE_VALIDATION, |
97 | 97 | $options->alternateDateValidation |
98 | 98 | ); |
99 | - } elseif($options->overridePastDateTst === true) { |
|
99 | + } elseif ($options->overridePastDateTst === true) { |
|
100 | 100 | $this->overrideDate = new OverrideDate(OverrideDate::OPT_OVERRIDE_PAST_DATE_TST); |
101 | 101 | } |
102 | 102 |