@@ -193,7 +193,7 @@ |
||
| 193 | 193 | $this->requestCreator = $this->loadRequestCreator( |
| 194 | 194 | $params->requestCreator, |
| 195 | 195 | $params->requestCreatorParams, |
| 196 | - self::RECEIVED_FROM_IDENTIFIER . "-" .self::VERSION, |
|
| 196 | + self::RECEIVED_FROM_IDENTIFIER."-".self::VERSION, |
|
| 197 | 197 | $this->sessionHandler->getOriginatorOffice(), |
| 198 | 198 | $this->sessionHandler->getMessagesAndVersions() |
| 199 | 199 | ); |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | ); |
| 135 | 135 | } else { |
| 136 | 136 | throw new InvalidArgumentException( |
| 137 | - 'Hotel Offer Confirm Form of Payment ' . $params->formOfPayment . ' is not yet supported' |
|
| 137 | + 'Hotel Offer Confirm Form of Payment '.$params->formOfPayment.' is not yet supported' |
|
| 138 | 138 | ); |
| 139 | 139 | } |
| 140 | 140 | } |
@@ -70,7 +70,7 @@ |
||
| 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 | } |
@@ -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 | /** |
@@ -346,10 +346,10 @@ discard block |
||
| 346 | 346 | $charId = strtoupper(md5(uniqid(rand(), true))); |
| 347 | 347 | $hyphen = chr(45); // "-" |
| 348 | 348 | |
| 349 | - $uuid = substr($charId, 0, 8) . $hyphen |
|
| 350 | - .substr($charId, 8, 4) . $hyphen |
|
| 351 | - .substr($charId, 12, 4) . $hyphen |
|
| 352 | - .substr($charId, 16, 4) . $hyphen |
|
| 349 | + $uuid = substr($charId, 0, 8).$hyphen |
|
| 350 | + .substr($charId, 8, 4).$hyphen |
|
| 351 | + .substr($charId, 12, 4).$hyphen |
|
| 352 | + .substr($charId, 16, 4).$hyphen |
|
| 353 | 353 | .substr($charId, 20, 12); |
| 354 | 354 | |
| 355 | 355 | return $uuid; |
@@ -366,10 +366,10 @@ discard block |
||
| 366 | 366 | { |
| 367 | 367 | return $xml = '<oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> |
| 368 | 368 | <oas:UsernameToken xmlns:oas1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" oas1:Id="UsernameToken-1"> |
| 369 | - <oas:Username>' . $originator . '</oas:Username> |
|
| 370 | - <oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce . '</oas:Nonce> |
|
| 371 | - <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest . '</oas:Password> |
|
| 372 | - <oas1:Created>' . $creationTimeString . '</oas1:Created> |
|
| 369 | + <oas:Username>' . $originator.'</oas:Username> |
|
| 370 | + <oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce.'</oas:Nonce> |
|
| 371 | + <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest.'</oas:Password> |
|
| 372 | + <oas1:Created>' . $creationTimeString.'</oas1:Created> |
|
| 373 | 373 | </oas:UsernameToken> |
| 374 | 374 | </oas:Security>'; |
| 375 | 375 | } |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | { |
| 385 | 385 | return substr( |
| 386 | 386 | sha1( |
| 387 | - $nonceBase . $creationString, |
|
| 387 | + $nonceBase.$creationString, |
|
| 388 | 388 | true |
| 389 | 389 | ), |
| 390 | 390 | 0, |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | */ |
| 414 | 414 | protected function generatePasswordDigest($password, $creationString, $messageNonce) |
| 415 | 415 | { |
| 416 | - return base64_encode(sha1($messageNonce . $creationString . sha1($password, true), true)); |
|
| 416 | + return base64_encode(sha1($messageNonce.$creationString.sha1($password, true), true)); |
|
| 417 | 417 | } |
| 418 | 418 | |
| 419 | 419 | /** |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | protected function createDateTimeStringForAuth($creationDateTime, $micro) |
| 425 | 425 | { |
| 426 | 426 | $creationDateTime->setTimezone(new \DateTimeZone('UTC')); |
| 427 | - return $creationDateTime->format("Y-m-d\TH:i:s:") . $micro . 'Z'; |
|
| 427 | + return $creationDateTime->format("Y-m-d\TH:i:s:").$micro.'Z'; |
|
| 428 | 428 | } |
| 429 | 429 | |
| 430 | 430 | /** |