@@ -61,7 +61,7 @@ |
||
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 |
@@ -122,7 +122,7 @@ |
||
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 | } |
@@ -37,7 +37,7 @@ |
||
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 |
@@ -58,23 +58,23 @@ |
||
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"; |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $this->params = $params; |
183 | 183 | if ($params->logger instanceof LoggerInterface) { |
184 | 184 | $this->setLogger($params->logger); |
185 | - $this->log(LogLevel::INFO, __METHOD__. "(): Logger started."); |
|
185 | + $this->log(LogLevel::INFO, __METHOD__."(): Logger started."); |
|
186 | 186 | } |
187 | 187 | if ($params->overrideSoapClient instanceof \SoapClient) { |
188 | 188 | $this->soapClient = $params->overrideSoapClient; |
@@ -215,12 +215,12 @@ discard block |
||
215 | 215 | |
216 | 216 | $this->handlePostMessage($messageName, $this->getLastResponse(), $messageOptions, $result); |
217 | 217 | |
218 | - } catch(\SoapFault $ex) { |
|
218 | + } catch (\SoapFault $ex) { |
|
219 | 219 | $this->log( |
220 | 220 | LogLevel::ERROR, |
221 | - "SOAPFAULT while sending message " . $messageName . ": " . |
|
222 | - $ex->getMessage() . " code: " .$ex->getCode() . " at " . $ex->getFile() . |
|
223 | - " line " . $ex->getLine() . ": \n" . $ex->getTraceAsString() |
|
221 | + "SOAPFAULT while sending message ".$messageName.": ". |
|
222 | + $ex->getMessage()." code: ".$ex->getCode()." at ".$ex->getFile(). |
|
223 | + " line ".$ex->getLine().": \n".$ex->getTraceAsString() |
|
224 | 224 | ); |
225 | 225 | $this->logRequestAndResponse($messageName); |
226 | 226 | $result->exception = $ex; |
@@ -229,8 +229,8 @@ discard block |
||
229 | 229 | // is unreadable |
230 | 230 | $this->log( |
231 | 231 | LogLevel::ERROR, |
232 | - "EXCEPTION while sending message " . $messageName . ": " . |
|
233 | - $ex->getMessage() . " at " . $ex->getFile() . " line " . $ex->getLine() . ": \n" . |
|
232 | + "EXCEPTION while sending message ".$messageName.": ". |
|
233 | + $ex->getMessage()." at ".$ex->getFile()." line ".$ex->getLine().": \n". |
|
234 | 234 | $ex->getTraceAsString() |
235 | 235 | ); |
236 | 236 | $this->logRequestAndResponse($messageName); |
@@ -345,8 +345,8 @@ discard block |
||
345 | 345 | */ |
346 | 346 | protected function extractMessageVersion($fullVersionString) |
347 | 347 | { |
348 | - $secondUnderscore = strpos($fullVersionString, '_', strpos($fullVersionString, '_')+1); |
|
349 | - $num = substr($fullVersionString, $secondUnderscore+1); |
|
348 | + $secondUnderscore = strpos($fullVersionString, '_', strpos($fullVersionString, '_') + 1); |
|
349 | + $num = substr($fullVersionString, $secondUnderscore + 1); |
|
350 | 350 | |
351 | 351 | return str_replace('_', '.', $num); |
352 | 352 | } |
@@ -421,11 +421,11 @@ discard block |
||
421 | 421 | { |
422 | 422 | $this->log( |
423 | 423 | LogLevel::INFO, |
424 | - 'Called ' . $messageName . ' with request: ' . $this->getSoapClient()->__getLastRequest() |
|
424 | + 'Called '.$messageName.' with request: '.$this->getSoapClient()->__getLastRequest() |
|
425 | 425 | ); |
426 | 426 | $this->log( |
427 | 427 | LogLevel::INFO, |
428 | - 'Response: ' . $this->getSoapClient()->__getLastResponse() |
|
428 | + 'Response: '.$this->getSoapClient()->__getLastResponse() |
|
429 | 429 | ); |
430 | 430 | } |
431 | 431 |
@@ -130,7 +130,7 @@ |
||
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 | } |