Completed
Push — master ( d17808...738038 )
by Dieter
07:30
created
src/Amadeus/Client/Session/Handler/Base.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -446,9 +446,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Pnr/AddMultiElements/AirAuxItinerary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Pnr/AddMultiElements/DataElementsIndiv.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Pnr/AddMultiElements.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Amadeus/Client/ResponseHandler/BaseUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Amadeus/Client/ResponseHandler/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Amadeus/Client/RequestCreator/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -329,7 +329,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Pnr/DisplayHistory/PredicateElementType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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";
Please login to merge, or discard this patch.
src/Amadeus/Client/Session/Handler/SoapHeader4.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -366,10 +366,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.