@@ -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) |
@@ -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_* |
@@ -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 | ); |
@@ -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 | |
@@ -41,55 +41,55 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public $reference; |
| 43 | 43 | /** |
| 44 | - * PNR_AddMultiElements/originDestinationDetails/itineraryInfo/elementManagementItinerary/segmentName |
|
| 45 | - * |
|
| 46 | - * AB Billing Address element |
|
| 47 | - * ABU Unstructured Billing Address element |
|
| 48 | - * AI Accounting Information element |
|
| 49 | - * AIR Air segment |
|
| 50 | - * AM Mailing address element |
|
| 51 | - * AMU Unstructured Mailing Address Element |
|
| 52 | - * AP Contact element |
|
| 53 | - * AU ATX - Non-automated Air Taxi auxiliary segment |
|
| 54 | - * CU Non-automated Car auxiliary segment |
|
| 55 | - * ES Individual PNR Security element |
|
| 56 | - * FD Fare Discount element |
|
| 57 | - * FE Endorsements / Restrictions element |
|
| 58 | - * FF Frequent Flyer entry |
|
| 59 | - * FH Manual Document Registration element |
|
| 60 | - * FHA Automated ticket number |
|
| 61 | - * FHE Electronic ticket number |
|
| 62 | - * FHM Manual ticket number/document registration element |
|
| 63 | - * FK AIR destination |
|
| 64 | - * FM Commission element |
|
| 65 | - * FO Original Issue / Issue in Exchange For element |
|
| 66 | - * FP Form of Payment element |
|
| 67 | - * FS Miscellaneous Ticketing Information element |
|
| 68 | - * FT Tour Code element |
|
| 69 | - * FV Ticketing Carrier Designator element |
|
| 70 | - * FY Fare print override element |
|
| 71 | - * FZ Miscellaneous Information element |
|
| 72 | - * HU Non-automated Hotel auxiliary segment |
|
| 73 | - * NG Group Name element |
|
| 74 | - * NM Name element |
|
| 75 | - * NZ Non Commerciak PNR Name element |
|
| 76 | - * OP Option element |
|
| 77 | - * OS Other Special Information element |
|
| 78 | - * RC Confidential Remark element |
|
| 79 | - * RF Receive From element |
|
| 80 | - * RI Invoice remark |
|
| 81 | - * RM General Remark elementt |
|
| 82 | - * RQ Quality control remark element |
|
| 83 | - * RU Non-automated Miscellaneous auxiliary segment |
|
| 84 | - * RX Corporate Remark |
|
| 85 | - * SK Special Keyword elements |
|
| 86 | - * SSR SSR element |
|
| 87 | - * STR Seat Request |
|
| 88 | - * TK Ticket element |
|
| 89 | - * TU Non-automated Tour auxiliary segment |
|
| 90 | - * |
|
| 91 | - * @var string |
|
| 92 | - */ |
|
| 44 | + * PNR_AddMultiElements/originDestinationDetails/itineraryInfo/elementManagementItinerary/segmentName |
|
| 45 | + * |
|
| 46 | + * AB Billing Address element |
|
| 47 | + * ABU Unstructured Billing Address element |
|
| 48 | + * AI Accounting Information element |
|
| 49 | + * AIR Air segment |
|
| 50 | + * AM Mailing address element |
|
| 51 | + * AMU Unstructured Mailing Address Element |
|
| 52 | + * AP Contact element |
|
| 53 | + * AU ATX - Non-automated Air Taxi auxiliary segment |
|
| 54 | + * CU Non-automated Car auxiliary segment |
|
| 55 | + * ES Individual PNR Security element |
|
| 56 | + * FD Fare Discount element |
|
| 57 | + * FE Endorsements / Restrictions element |
|
| 58 | + * FF Frequent Flyer entry |
|
| 59 | + * FH Manual Document Registration element |
|
| 60 | + * FHA Automated ticket number |
|
| 61 | + * FHE Electronic ticket number |
|
| 62 | + * FHM Manual ticket number/document registration element |
|
| 63 | + * FK AIR destination |
|
| 64 | + * FM Commission element |
|
| 65 | + * FO Original Issue / Issue in Exchange For element |
|
| 66 | + * FP Form of Payment element |
|
| 67 | + * FS Miscellaneous Ticketing Information element |
|
| 68 | + * FT Tour Code element |
|
| 69 | + * FV Ticketing Carrier Designator element |
|
| 70 | + * FY Fare print override element |
|
| 71 | + * FZ Miscellaneous Information element |
|
| 72 | + * HU Non-automated Hotel auxiliary segment |
|
| 73 | + * NG Group Name element |
|
| 74 | + * NM Name element |
|
| 75 | + * NZ Non Commerciak PNR Name element |
|
| 76 | + * OP Option element |
|
| 77 | + * OS Other Special Information element |
|
| 78 | + * RC Confidential Remark element |
|
| 79 | + * RF Receive From element |
|
| 80 | + * RI Invoice remark |
|
| 81 | + * RM General Remark elementt |
|
| 82 | + * RQ Quality control remark element |
|
| 83 | + * RU Non-automated Miscellaneous auxiliary segment |
|
| 84 | + * RX Corporate Remark |
|
| 85 | + * SK Special Keyword elements |
|
| 86 | + * SSR SSR element |
|
| 87 | + * STR Seat Request |
|
| 88 | + * TK Ticket element |
|
| 89 | + * TU Non-automated Tour auxiliary segment |
|
| 90 | + * |
|
| 91 | + * @var string |
|
| 92 | + */ |
|
| 93 | 93 | public $segmentName; |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -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); |
@@ -103,12 +103,10 @@ |
||
| 103 | 103 | |
| 104 | 104 | if (!is_null($params->restrictCountry) || !is_null($params->restrictState)) { |
| 105 | 105 | $params->restrictState = (!is_null($params->restrictState)) ? |
| 106 | - strtoupper($params->restrictState) : |
|
| 107 | - $params->restrictState; |
|
| 106 | + strtoupper($params->restrictState) : $params->restrictState; |
|
| 108 | 107 | |
| 109 | 108 | $params->restrictCountry = (!is_null($params->restrictCountry)) ? |
| 110 | - strtoupper($params->restrictCountry) : |
|
| 111 | - $params->restrictCountry; |
|
| 109 | + strtoupper($params->restrictCountry) : $params->restrictCountry; |
|
| 112 | 110 | |
| 113 | 111 | $this->countryStateRestriction = new CountryStateRestriction( |
| 114 | 112 | $params->restrictCountry, |
@@ -95,12 +95,12 @@ discard block |
||
| 95 | 95 | { |
| 96 | 96 | $this->checkMessageIsInWsdl($messageName); |
| 97 | 97 | |
| 98 | - $methodName = 'create' . str_replace("_", "", $messageName); |
|
| 98 | + $methodName = 'create'.str_replace("_", "", $messageName); |
|
| 99 | 99 | |
| 100 | 100 | if (method_exists($this, $methodName)) { |
| 101 | 101 | return $this->$methodName($params); |
| 102 | 102 | } else { |
| 103 | - throw new \RuntimeException('Message ' . $methodName . ' is not implemented in ' . __CLASS__); |
|
| 103 | + throw new \RuntimeException('Message '.$methodName.' is not implemented in '.__CLASS__); |
|
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | 106 | |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | protected function checkMessageIsInWsdl($messageName) |
| 428 | 428 | { |
| 429 | 429 | if (!array_key_exists($messageName, $this->messagesAndVersions)) { |
| 430 | - throw new InvalidMessageException('Message "' . $messageName . '" is not in WDSL'); |
|
| 430 | + throw new InvalidMessageException('Message "'.$messageName.'" is not in WDSL'); |
|
| 431 | 431 | } |
| 432 | 432 | } |
| 433 | 433 | |
@@ -59,6 +59,6 @@ |
||
| 59 | 59 | */ |
| 60 | 60 | protected static function makeReceivedFrom($original, $libIdentifier) |
| 61 | 61 | { |
| 62 | - return $original . " " . $libIdentifier; |
|
| 62 | + return $original." ".$libIdentifier; |
|
| 63 | 63 | } |
| 64 | 64 | } |