| @@ -341,7 +341,7 @@ | ||
| 341 | 341 | return implode( | 
| 342 | 342 | ' - ', | 
| 343 | 343 | array_map( | 
| 344 | -                function ($item) { | |
| 344 | +                function($item) { | |
| 345 | 345 | return trim($item->nodeValue); | 
| 346 | 346 | }, | 
| 347 | 347 | iterator_to_array($errorTextNodeList) | 
| @@ -156,7 +156,7 @@ | ||
| 156 | 156 | |
| 157 | 157 | |
| 158 | 158 | /** | 
| 159 | - * This option allows you to override the currency of the office. | |
| 159 | + * This option allows you to override the currency of the office. | |
| 160 | 160 | * | 
| 161 | 161 | * @var string | 
| 162 | 162 | */ | 
| @@ -39,7 +39,7 @@ | ||
| 39 | 39 | const INDICATOR_NOT_REPORTED_REFUND = "NRP"; | 
| 40 | 40 | const INDICATOR_NO_SHOW = "NS"; | 
| 41 | 41 | const INDICATOR_ZERO_REFUND = "NUL"; | 
| 42 | - const INDICATOR_HOLD_FOR_FUTURE_USE= "RTF"; | |
| 42 | + const INDICATOR_HOLD_FOR_FUTURE_USE = "RTF"; | |
| 43 | 43 | const INDICATOR_TAXES = "TAX"; | 
| 44 | 44 | |
| 45 | 45 | |
| @@ -33,21 +33,21 @@ | ||
| 33 | 33 | class MultiTicketWeights extends LoadParamsFromArray | 
| 34 | 34 |  { | 
| 35 | 35 | /** | 
| 36 | - * Recommendations for outbound (OWO) | |
| 37 | - * | |
| 38 | - * @var int | |
| 39 | - */ | |
| 36 | + * Recommendations for outbound (OWO) | |
| 37 | + * | |
| 38 | + * @var int | |
| 39 | + */ | |
| 40 | 40 | public $oneWayOutbound; | 
| 41 | 41 | /** | 
| 42 | - * Recommendations for inbound (OWI) | |
| 43 | - * | |
| 44 | - * @var int | |
| 45 | - */ | |
| 42 | + * Recommendations for inbound (OWI) | |
| 43 | + * | |
| 44 | + * @var int | |
| 45 | + */ | |
| 46 | 46 | public $oneWayInbound; | 
| 47 | 47 | /** | 
| 48 | - * Recommendations for complete journey (RT) | |
| 49 | - * | |
| 50 | - * @var int | |
| 51 | - */ | |
| 48 | + * Recommendations for complete journey (RT) | |
| 49 | + * | |
| 50 | + * @var int | |
| 51 | + */ | |
| 52 | 52 | public $returnTrip; | 
| 53 | 53 | } | 
| @@ -96,7 +96,7 @@ | ||
| 96 | 96 | * @param string $key | 
| 97 | 97 | * @param string $optionDetail | 
| 98 | 98 | */ | 
| 99 | - public function __construct($key, $optionDetail=null) | |
| 99 | + public function __construct($key, $optionDetail = null) | |
| 100 | 100 |      { | 
| 101 | 101 | $this->pricingOptionKey = new PricingOptionKey($key); | 
| 102 | 102 |          if (isset($optionDetail)) { | 
| @@ -185,6 +185,6 @@ | ||
| 185 | 185 | |
| 186 | 186 |          $monthAndYear = strtoupper($dateOfBirth->format('My')); | 
| 187 | 187 | |
| 188 | - return $day . $monthAndYear; | |
| 188 | + return $day.$monthAndYear; | |
| 189 | 189 | } | 
| 190 | 190 | } | 
| @@ -412,10 +412,10 @@ discard block | ||
| 412 | 412 | $charId = strtoupper(md5(uniqid(rand(), true))); | 
| 413 | 413 | $hyphen = chr(45); // "-" | 
| 414 | 414 | |
| 415 | - $uuid = substr($charId, 0, 8) . $hyphen | |
| 416 | - . substr($charId, 8, 4) . $hyphen | |
| 417 | - . substr($charId, 12, 4) . $hyphen | |
| 418 | - . substr($charId, 16, 4) . $hyphen | |
| 415 | + $uuid = substr($charId, 0, 8).$hyphen | |
| 416 | + . substr($charId, 8, 4).$hyphen | |
| 417 | + . substr($charId, 12, 4).$hyphen | |
| 418 | + . substr($charId, 16, 4).$hyphen | |
| 419 | 419 | . substr($charId, 20, 12); | 
| 420 | 420 | |
| 421 | 421 | return $uuid; | 
| @@ -432,10 +432,10 @@ discard block | ||
| 432 | 432 |      { | 
| 433 | 433 | return $xml = '<oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> | 
| 434 | 434 | <oas:UsernameToken xmlns:oas1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" oas1:Id="UsernameToken-1"> | 
| 435 | - <oas:Username>' . $originator . '</oas:Username> | |
| 436 | - <oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce . '</oas:Nonce> | |
| 437 | - <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest . '</oas:Password> | |
| 438 | - <oas1:Created>' . $creationTimeString . '</oas1:Created> | |
| 435 | + <oas:Username>' . $originator.'</oas:Username> | |
| 436 | + <oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce.'</oas:Nonce> | |
| 437 | + <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest.'</oas:Password> | |
| 438 | + <oas1:Created>' . $creationTimeString.'</oas1:Created> | |
| 439 | 439 | </oas:UsernameToken> | 
| 440 | 440 | </oas:Security>'; | 
| 441 | 441 | } | 
| @@ -450,7 +450,7 @@ discard block | ||
| 450 | 450 |      { | 
| 451 | 451 | return substr( | 
| 452 | 452 | sha1( | 
| 453 | - $nonceBase . $creationString, | |
| 453 | + $nonceBase.$creationString, | |
| 454 | 454 | true | 
| 455 | 455 | ), | 
| 456 | 456 | 0, | 
| @@ -479,7 +479,7 @@ discard block | ||
| 479 | 479 | */ | 
| 480 | 480 | protected function generatePasswordDigest($password, $creationString, $messageNonce) | 
| 481 | 481 |      { | 
| 482 | - return base64_encode(sha1($messageNonce . $creationString . sha1($password, true), true)); | |
| 482 | + return base64_encode(sha1($messageNonce.$creationString.sha1($password, true), true)); | |
| 483 | 483 | } | 
| 484 | 484 | |
| 485 | 485 | /** | 
| @@ -491,7 +491,7 @@ discard block | ||
| 491 | 491 |      { | 
| 492 | 492 |          $creationDateTime->setTimezone(new \DateTimeZone('UTC')); | 
| 493 | 493 | |
| 494 | -        return $creationDateTime->format("Y-m-d\TH:i:s:") . $micro . 'Z'; | |
| 494 | +        return $creationDateTime->format("Y-m-d\TH:i:s:").$micro.'Z'; | |
| 495 | 495 | } | 
| 496 | 496 | |
| 497 | 497 | /** |