| @@ -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 | /** | 
| @@ -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) | 
| @@ -39,7 +39,7 @@ | ||
| 39 | 39 | const ACTION_NOT_REPORTED_REFUND = "NRP"; | 
| 40 | 40 | const ACTION_NO_SHOW = "NS"; | 
| 41 | 41 | const ACTION_ZERO_REFUND = "NUL"; | 
| 42 | - const ACTION_HOLD_FOR_FUTURE_USE= "RTF"; | |
| 42 | + const ACTION_HOLD_FOR_FUTURE_USE = "RTF"; | |
| 43 | 43 | const ACTION_TAXES = "TAX"; | 
| 44 | 44 | |
| 45 | 45 | const TYPE_FROM_NUMBER = "FRM"; | 
| @@ -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 | |