@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * @param string $pseudoCityCode |
40 | 40 | * @param string|null $requestorType |
41 | - * @param int|null $posType |
|
41 | + * @param integer $posType |
|
42 | 42 | * @param string|null $agentDutyCode |
43 | 43 | */ |
44 | 44 | public function __construct($pseudoCityCode, $requestorType = "U", $posType = 1, $agentDutyCode = null) |
@@ -209,7 +209,7 @@ |
||
209 | 209 | { |
210 | 210 | $result = []; |
211 | 211 | |
212 | - switch($groupTypeString) { |
|
212 | + switch ($groupTypeString) { |
|
213 | 213 | case PriceXplorerExtremeSearchOptions::AGGR_DEST: |
214 | 214 | $result[] = AttributeDetails::TYPE_DESTINATION; |
215 | 215 | break; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | const TYPE_CHILD = "CH"; |
38 | 38 | |
39 | - const TYPE_INFANT= "INF"; |
|
39 | + const TYPE_INFANT = "INF"; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * What type of passengers? self::TYPE_* |
@@ -30,33 +30,33 @@ discard block |
||
30 | 30 | */ |
31 | 31 | class Passenger |
32 | 32 | { |
33 | - const PASST_ADULT = "ADT"; |
|
34 | - const PASST_INFANT = "INF"; |
|
35 | - const PASST_CHILD = "CHD"; |
|
33 | + const PASST_ADULT = "ADT"; |
|
34 | + const PASST_INFANT = "INF"; |
|
35 | + const PASST_CHILD = "CHD"; |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * 1: Infant (INF) No more info in Edifact. |
39 | 39 | */ |
40 | - const INF_NOINFO = 1; |
|
40 | + const INF_NOINFO = 1; |
|
41 | 41 | /** |
42 | 42 | * 2: Infant given name only (INF/BILL) Infant given name will be placed |
43 | 43 | * in a 2nd occurence of C324 of this (adult) passenger TIF. |
44 | 44 | * The 2nd C324/6353 element will contain INF. |
45 | 45 | */ |
46 | - const INF_GIVEN = 2; |
|
46 | + const INF_GIVEN = 2; |
|
47 | 47 | /** |
48 | 48 | * 3: Infant given and last name (INFGATES/BILL) Infant is treated as a |
49 | 49 | * separate TIF following immediately this (adult) passenger TIF. |
50 | 50 | * This following TIF C324/6353 element will contain INF. |
51 | 51 | */ |
52 | - const INF_FULL = 3; |
|
52 | + const INF_FULL = 3; |
|
53 | 53 | |
54 | 54 | /** |
55 | 55 | * @var string |
56 | 56 | */ |
57 | - public $firstName; |
|
57 | + public $firstName; |
|
58 | 58 | |
59 | - /* |
|
59 | + /* |
|
60 | 60 | * self::PASST_* |
61 | 61 | * |
62 | 62 | * Passenger Types: |
@@ -231,26 +231,26 @@ discard block |
||
231 | 231 | * |
232 | 232 | * @var string |
233 | 233 | */ |
234 | - public $type; |
|
234 | + public $type; |
|
235 | 235 | |
236 | - /* |
|
236 | + /* |
|
237 | 237 | * self::INF_* |
238 | 238 | * |
239 | 239 | * @var string|int |
240 | 240 | */ |
241 | - public $infantIndicator; |
|
241 | + public $infantIndicator; |
|
242 | 242 | |
243 | 243 | /** |
244 | 244 | * @var string |
245 | 245 | */ |
246 | - public $identificationCode; |
|
246 | + public $identificationCode; |
|
247 | 247 | |
248 | 248 | /** |
249 | 249 | * Passenger constructor. |
250 | 250 | * @param $firstName |
251 | 251 | * @param $type |
252 | 252 | */ |
253 | - public function __construct($firstName, $type) |
|
253 | + public function __construct($firstName, $type) |
|
254 | 254 | { |
255 | 255 | $this->firstName = $firstName; |
256 | 256 | $this->type = $type; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | class Scroll |
32 | 32 | { |
33 | 33 | /** |
34 | - * @var NumberOfItemsDetails |
|
35 | - */ |
|
34 | + * @var NumberOfItemsDetails |
|
35 | + */ |
|
36 | 36 | public $numberOfItemsDetails; |
37 | 37 | } |
38 | 38 | \ No newline at end of file |
@@ -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 |