@@ -279,8 +279,7 @@ discard block |
||
279 | 279 | //We are authenticated and stateful: provide session header to continue or terminate session |
280 | 280 | $statusCode = |
281 | 281 | (isset($messageOptions['endSession']) && $messageOptions['endSession'] === true) ? |
282 | - "End" : |
|
283 | - "InSeries"; |
|
282 | + "End" : "InSeries"; |
|
284 | 283 | |
285 | 284 | array_push( |
286 | 285 | $headersToSet, |
@@ -348,14 +347,14 @@ discard block |
||
348 | 347 | if (function_exists('com_create_guid')) { |
349 | 348 | return com_create_guid(); |
350 | 349 | } else { |
351 | - mt_srand((double)microtime()*10000); |
|
350 | + mt_srand((double) microtime() * 10000); |
|
352 | 351 | $charId = strtoupper(md5(uniqid(rand(), true))); |
353 | 352 | $hyphen = chr(45); // "-" |
354 | 353 | |
355 | - $uuid = substr($charId, 0, 8) . $hyphen |
|
356 | - .substr($charId, 8, 4) . $hyphen |
|
357 | - .substr($charId, 12, 4) . $hyphen |
|
358 | - .substr($charId, 16, 4) . $hyphen |
|
354 | + $uuid = substr($charId, 0, 8).$hyphen |
|
355 | + .substr($charId, 8, 4).$hyphen |
|
356 | + .substr($charId, 12, 4).$hyphen |
|
357 | + .substr($charId, 16, 4).$hyphen |
|
359 | 358 | .substr($charId, 20, 12); |
360 | 359 | |
361 | 360 | return $uuid; |
@@ -373,10 +372,10 @@ discard block |
||
373 | 372 | { |
374 | 373 | return $xml = '<oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> |
375 | 374 | <oas:UsernameToken xmlns:oas1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" oas1:Id="UsernameToken-1"> |
376 | - <oas:Username>' . $originator . '</oas:Username> |
|
377 | - <oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce . '</oas:Nonce> |
|
378 | - <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest . '</oas:Password> |
|
379 | - <oas1:Created>' . $creationTimeString . '</oas1:Created> |
|
375 | + <oas:Username>' . $originator.'</oas:Username> |
|
376 | + <oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce.'</oas:Nonce> |
|
377 | + <oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest.'</oas:Password> |
|
378 | + <oas1:Created>' . $creationTimeString.'</oas1:Created> |
|
380 | 379 | </oas:UsernameToken> |
381 | 380 | </oas:Security>'; |
382 | 381 | } |
@@ -391,7 +390,7 @@ discard block |
||
391 | 390 | { |
392 | 391 | return substr( |
393 | 392 | sha1( |
394 | - $nonceBase . $creationString, |
|
393 | + $nonceBase.$creationString, |
|
395 | 394 | true |
396 | 395 | ), |
397 | 396 | 0, |
@@ -419,7 +418,7 @@ discard block |
||
419 | 418 | */ |
420 | 419 | protected function generatePasswordDigest($password, $creationString, $messageNonce) |
421 | 420 | { |
422 | - return base64_encode(sha1($messageNonce . $creationString . sha1($password, true), true)); |
|
421 | + return base64_encode(sha1($messageNonce.$creationString.sha1($password, true), true)); |
|
423 | 422 | } |
424 | 423 | |
425 | 424 | /** |
@@ -430,7 +429,7 @@ discard block |
||
430 | 429 | protected function createDateTimeStringForAuth($creationDateTime, $micro) |
431 | 430 | { |
432 | 431 | $creationDateTime->setTimezone(new \DateTimeZone('UTC')); |
433 | - return $creationDateTime->format("Y-m-d\TH:i:s:") . $micro . 'Z'; |
|
432 | + return $creationDateTime->format("Y-m-d\TH:i:s:").$micro.'Z'; |
|
434 | 433 | } |
435 | 434 | |
436 | 435 | /** |
@@ -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 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | class Scroll |
32 | 32 | { |
33 | 33 | /** |
34 | - * @var NumberOfItemsDetails |
|
35 | - */ |
|
34 | + * @var NumberOfItemsDetails |
|
35 | + */ |
|
36 | 36 | public $numberOfItemsDetails; |
37 | 37 | } |
@@ -91,9 +91,9 @@ discard block |
||
91 | 91 | { |
92 | 92 | $newRequest = null; |
93 | 93 | |
94 | - $xsltFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . self::REMOVE_EMPTY_XSLT_LOCATION; |
|
94 | + $xsltFile = dirname(__FILE__).DIRECTORY_SEPARATOR.self::REMOVE_EMPTY_XSLT_LOCATION; |
|
95 | 95 | if (!is_readable($xsltFile)) { |
96 | - throw new Exception('XSLT file "' . $xsltFile . '" is not readable!'); |
|
96 | + throw new Exception('XSLT file "'.$xsltFile.'" is not readable!'); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | if ($transform === false) { |
109 | 109 | $this->logger->log( |
110 | 110 | Log\LogLevel::ERROR, |
111 | - __METHOD__ . "__doRequest(): XSLTProcessor::transformToXml " |
|
111 | + __METHOD__."__doRequest(): XSLTProcessor::transformToXml " |
|
112 | 112 | . "returned FALSE: could not perform transformation!!" |
113 | 113 | ); |
114 | 114 | $newRequest = $request; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function analyzeResponse($sendResult, $messageName) |
56 | 56 | { |
57 | - $methodName = 'analyze' . str_replace('_', '', ucfirst($messageName)) . 'Response'; |
|
57 | + $methodName = 'analyze'.str_replace('_', '', ucfirst($messageName)).'Response'; |
|
58 | 58 | |
59 | 59 | if (!empty($sendResult->exception)) { |
60 | 60 | return $this->makeResultForException($sendResult); |
@@ -825,7 +825,7 @@ discard block |
||
825 | 825 | $errorMessage = (array_key_exists($errorCode, $recognizedErrors)) ? $recognizedErrors[$errorCode] : ''; |
826 | 826 | |
827 | 827 | if ($errorMessage === '') { |
828 | - $errorMessage = "QUEUE ERROR '" . $errorCode . "' (Error message unavailable)"; |
|
828 | + $errorMessage = "QUEUE ERROR '".$errorCode."' (Error message unavailable)"; |
|
829 | 829 | } |
830 | 830 | |
831 | 831 | return $errorMessage; |
@@ -915,7 +915,7 @@ discard block |
||
915 | 915 | return implode( |
916 | 916 | ' - ', |
917 | 917 | array_map( |
918 | - function ($item) { |
|
918 | + function($item) { |
|
919 | 919 | return trim($item->nodeValue); |
920 | 920 | }, |
921 | 921 | iterator_to_array($errorTextNodeList) |