@@ -424,10 +424,10 @@ discard block |
||
| 424 | 424 | $charId = strtoupper(md5(uniqid(rand(), true))); |
| 425 | 425 | $hyphen = chr(45); // "-" |
| 426 | 426 | |
| 427 | - $uuid = substr($charId, 0, 8) . $hyphen |
|
| 428 | - . substr($charId, 8, 4) . $hyphen |
|
| 429 | - . substr($charId, 12, 4) . $hyphen |
|
| 430 | - . substr($charId, 16, 4) . $hyphen |
|
| 427 | + $uuid = substr($charId, 0, 8).$hyphen |
|
| 428 | + . substr($charId, 8, 4).$hyphen |
|
| 429 | + . substr($charId, 12, 4).$hyphen |
|
| 430 | + . substr($charId, 16, 4).$hyphen |
|
| 431 | 431 | . substr($charId, 20, 12); |
| 432 | 432 | |
| 433 | 433 | return $uuid; |
@@ -444,10 +444,10 @@ discard block |
||
| 444 | 444 | { |
| 445 | 445 | return $xml = '<oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> |
| 446 | 446 | <oas:UsernameToken xmlns:oas1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" oas1:Id="UsernameToken-1"> |
| 447 | - <oas:Username>' . $originator . '</oas:Username> |
|
| 448 | - <oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce . '</oas:Nonce> |
|
| 449 | - <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest . '</oas:Password> |
|
| 450 | - <oas1:Created>' . $creationTimeString . '</oas1:Created> |
|
| 447 | + <oas:Username>' . $originator.'</oas:Username> |
|
| 448 | + <oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce.'</oas:Nonce> |
|
| 449 | + <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest.'</oas:Password> |
|
| 450 | + <oas1:Created>' . $creationTimeString.'</oas1:Created> |
|
| 451 | 451 | </oas:UsernameToken> |
| 452 | 452 | </oas:Security>'; |
| 453 | 453 | } |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | { |
| 463 | 463 | return substr( |
| 464 | 464 | sha1( |
| 465 | - $nonceBase . $creationString, |
|
| 465 | + $nonceBase.$creationString, |
|
| 466 | 466 | true |
| 467 | 467 | ), |
| 468 | 468 | 0, |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | */ |
| 492 | 492 | protected function generatePasswordDigest($password, $creationString, $messageNonce) |
| 493 | 493 | { |
| 494 | - return base64_encode(sha1($messageNonce . $creationString . sha1($password, true), true)); |
|
| 494 | + return base64_encode(sha1($messageNonce.$creationString.sha1($password, true), true)); |
|
| 495 | 495 | } |
| 496 | 496 | |
| 497 | 497 | /** |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | { |
| 504 | 504 | $creationDateTime->setTimezone(new \DateTimeZone('UTC')); |
| 505 | 505 | |
| 506 | - return $creationDateTime->format("Y-m-d\TH:i:s:") . $micro . 'Z'; |
|
| 506 | + return $creationDateTime->format("Y-m-d\TH:i:s:").$micro.'Z'; |
|
| 507 | 507 | } |
| 508 | 508 | |
| 509 | 509 | /** |
@@ -315,7 +315,7 @@ |
||
| 315 | 315 | return implode( |
| 316 | 316 | ' - ', |
| 317 | 317 | array_map( |
| 318 | - function ($item) { |
|
| 318 | + function($item) { |
|
| 319 | 319 | return trim($item->nodeValue); |
| 320 | 320 | }, |
| 321 | 321 | iterator_to_array($errorTextNodeList) |
@@ -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)) { |
@@ -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 | |
@@ -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 | } |