@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | * @param string $messageName |
300 | 300 | * @param string $lastResponse |
301 | 301 | * @param array $messageOptions |
302 | - * @param mixed $result |
|
302 | + * @param SendResult $result |
|
303 | 303 | */ |
304 | 304 | protected abstract function handlePostMessage($messageName, $lastResponse, $messageOptions, $result); |
305 | 305 | |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | /** |
491 | 491 | * Get the version number active in the WSDL for the given message |
492 | 492 | * |
493 | - * @param $messageName |
|
493 | + * @param string $messageName |
|
494 | 494 | * @return float|string|null |
495 | 495 | */ |
496 | 496 | protected function getActiveVersionFor($messageName) |
@@ -509,7 +509,7 @@ discard block |
||
509 | 509 | /** |
510 | 510 | * Get the WSDL ID for the given message |
511 | 511 | * |
512 | - * @param $messageName |
|
512 | + * @param string $messageName |
|
513 | 513 | * @return string|null |
514 | 514 | */ |
515 | 515 | protected function getWsdlIdFor($messageName) |
@@ -446,9 +446,9 @@ discard block |
||
446 | 446 | */ |
447 | 447 | protected function extractMessageVersion($fullVersionString) |
448 | 448 | { |
449 | - $marker = strpos($fullVersionString, '_', strpos($fullVersionString, '_')+1); |
|
449 | + $marker = strpos($fullVersionString, '_', strpos($fullVersionString, '_') + 1); |
|
450 | 450 | |
451 | - $num = substr($fullVersionString, $marker+1); |
|
451 | + $num = substr($fullVersionString, $marker + 1); |
|
452 | 452 | |
453 | 453 | return str_replace('_', '.', $num); |
454 | 454 | } |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | 'http://schemas.xmlsoap.org/wsdl/soap/' |
481 | 481 | ); |
482 | 482 | } else { |
483 | - throw new Client\InvalidWsdlFileException('WSDL ' . $wsdlFilePath . ' could not be loaded'); |
|
483 | + throw new Client\InvalidWsdlFileException('WSDL '.$wsdlFilePath.' could not be loaded'); |
|
484 | 484 | } |
485 | 485 | } |
486 | 486 | } |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | $domDoc = null; |
568 | 568 | $domXpath = null; |
569 | 569 | |
570 | - $importPath = realpath(dirname($wsdlPath)) . DIRECTORY_SEPARATOR . $import; |
|
570 | + $importPath = realpath(dirname($wsdlPath)).DIRECTORY_SEPARATOR.$import; |
|
571 | 571 | $wsdlContent = file_get_contents($importPath); |
572 | 572 | |
573 | 573 | if ($wsdlContent !== false) { |
@@ -586,7 +586,7 @@ discard block |
||
586 | 586 | ); |
587 | 587 | } |
588 | 588 | } else { |
589 | - throw new Client\InvalidWsdlFileException('WSDL ' . $importPath . ' import could not be loaded'); |
|
589 | + throw new Client\InvalidWsdlFileException('WSDL '.$importPath.' import could not be loaded'); |
|
590 | 590 | } |
591 | 591 | |
592 | 592 | if ($domXpath instanceof \DOMXPath) { |
@@ -620,11 +620,11 @@ discard block |
||
620 | 620 | { |
621 | 621 | $this->log( |
622 | 622 | LogLevel::INFO, |
623 | - 'Called ' . $messageName . ' with request: ' . $this->getSoapClient($messageName)->__getLastRequest() |
|
623 | + 'Called '.$messageName.' with request: '.$this->getSoapClient($messageName)->__getLastRequest() |
|
624 | 624 | ); |
625 | 625 | $this->log( |
626 | 626 | LogLevel::INFO, |
627 | - 'Response: ' . $this->getSoapClient($messageName)->__getLastResponse() |
|
627 | + 'Response: '.$this->getSoapClient($messageName)->__getLastResponse() |
|
628 | 628 | ); |
629 | 629 | } |
630 | 630 |
@@ -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 | } |
@@ -125,7 +125,7 @@ |
||
125 | 125 | public $referenceForDataElement; |
126 | 126 | |
127 | 127 | /** |
128 | - * @param Element|string $element Either an element or an element name |
|
128 | + * @param Element $element Either an element or an element name |
|
129 | 129 | * @param int $tattoo Unique tattoo number for this element |
130 | 130 | */ |
131 | 131 | public function __construct($element, $tattoo) |
@@ -240,7 +240,7 @@ |
||
240 | 240 | $this->freetextData->freetextDetail->subjectQualifier = FreetextDetail::QUALIFIER_LITERALTEXT; |
241 | 241 | break; |
242 | 242 | default: |
243 | - throw new InvalidArgumentException('Element type ' . $elementType . ' is not supported'); |
|
243 | + throw new InvalidArgumentException('Element type '.$elementType.' is not supported'); |
|
244 | 244 | } |
245 | 245 | } |
246 | 246 |
@@ -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 | } |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | $errorMessage = (array_key_exists($errorCode, $recognizedErrors)) ? $recognizedErrors[$errorCode] : ''; |
255 | 255 | |
256 | 256 | if ($errorMessage === '') { |
257 | - $errorMessage = "QUEUE ERROR '" . $errorCode . "' (Error message unavailable)"; |
|
257 | + $errorMessage = "QUEUE ERROR '".$errorCode."' (Error message unavailable)"; |
|
258 | 258 | } |
259 | 259 | |
260 | 260 | return $errorMessage; |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | return implode( |
347 | 347 | ' - ', |
348 | 348 | array_map( |
349 | - function ($item) { |
|
349 | + function($item) { |
|
350 | 350 | return trim($item->nodeValue); |
351 | 351 | }, |
352 | 352 | iterator_to_array($errorTextNodeList) |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function analyzeResponse($sendResult, $messageName) |
53 | 53 | { |
54 | - $methodName = 'analyze' . str_replace('_', '', ucfirst($messageName)) . 'Response'; |
|
54 | + $methodName = 'analyze'.str_replace('_', '', ucfirst($messageName)).'Response'; |
|
55 | 55 | |
56 | 56 | if (!empty($sendResult->exception)) { |
57 | 57 | return $this->makeResultForException($sendResult); |
@@ -329,7 +329,7 @@ |
||
329 | 329 | protected function checkMessageIsInWsdl($messageName) |
330 | 330 | { |
331 | 331 | if (!array_key_exists($messageName, $this->messagesAndVersions)) { |
332 | - throw new InvalidMessageException('Message "' . $messageName . '" is not in WDSL'); |
|
332 | + throw new InvalidMessageException('Message "'.$messageName.'" is not in WDSL'); |
|
333 | 333 | } |
334 | 334 | } |
335 | 335 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * Original Issue / Issue in Exchange For element |
59 | 59 | */ |
60 | 60 | const SEGNAME_ORIGINAL_ISSUE = "FO"; |
61 | - const SEGNAME_FORM_OF_PAYMENT= "FP"; |
|
61 | + const SEGNAME_FORM_OF_PAYMENT = "FP"; |
|
62 | 62 | const SEGNAME_FERRY = "FRR"; |
63 | 63 | const SEGNAME_MISCELLANEOUS_TICKETING_INFORMATION = "FS"; |
64 | 64 | const SEGNAME_TOUR_CODE = "FT"; |
@@ -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 | /** |