Completed
Push — develop ( 384aa2...b71e24 )
by Dieter
46:17 queued 33:46
created
src/Amadeus/Client/Session/Handler/HandlerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             default:
62 62
                 //TODO implement Client::HEADER_V1
63 63
                 throw new \InvalidArgumentException(
64
-                    'No Session Handler found for soapHeaderVersion ' . $handlerParams->soapHeaderVersion
64
+                    'No Session Handler found for soapHeaderVersion '.$handlerParams->soapHeaderVersion
65 65
                 );
66 66
         }
67 67
 
Please login to merge, or discard this patch.
src/Amadeus/Client/Session/Handler/SoapHeader2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
             if ($sessionId) {
123 123
                 $newSessionData['sessionId'] = $sessionId;
124 124
             }
125
-            $sequence = (int)$responseDomDoc->getElementsByTagName(self::NODENAME_SEQENCENR)->item(0)->nodeValue;
125
+            $sequence = (int) $responseDomDoc->getElementsByTagName(self::NODENAME_SEQENCENR)->item(0)->nodeValue;
126 126
             if ($sequence) {
127 127
                 $newSessionData['sequenceNumber'] = $sequence;
128 128
             }
Please login to merge, or discard this patch.
src/Amadeus/Client/RequestOptions/Pnr/DisplayHistory/PredicateType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     const REFQUAL_OTHER_TATTOO = "O";
38 38
     const REFQUAL_PASSENGER_TATTOO = "PT";
39 39
     const REFQUAL_SEGMENT_TATTOO_SUBTATTOO = "SS";
40
-    const REFQUAL_SEGMENT_TATTOO= "ST";
40
+    const REFQUAL_SEGMENT_TATTOO = "ST";
41 41
     const REFQUAL_PASSENGER_CLIENT_REQUEST_MESSAGE = "PR";
42 42
     const REFQUAL_SEGMENT_CLIENT_REQUEST_MESSAGE = "SR";
43 43
 
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Pnr/DisplayHistory/PredicateElementType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,23 +58,23 @@
 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";
62
-    const SEGNAME_FERRY= "FRR";
61
+    const SEGNAME_FORM_OF_PAYMENT = "FP";
62
+    const SEGNAME_FERRY = "FRR";
63 63
     const SEGNAME_MISCELLANEOUS_TICKETING_INFORMATION = "FS";
64 64
     const SEGNAME_TOUR_CODE = "FT";
65 65
     const SEGNAME_TICKETING_CARRIER_DESIGNATOR = "FV";
66 66
     const SEGNAME_MISCELLANEOUS_INFORMATION = "FZ";
67 67
     const SEGNAME_NON_AUTOMATED_AY_DIRECT_ACCESS_HOTEL = "HAY";
68
-    const SEGNAME_AUTOMATED_HOTEL_AUXILIARY= "HHL";
68
+    const SEGNAME_AUTOMATED_HOTEL_AUXILIARY = "HHL";
69 69
     const SEGNAME_NON_AUTOMATED_HOTEL_AUXILIARY = "HU";
70
-    const SEGNAME_GROUP_NAME= "NG";
71
-    const SEGNAME_OPTION= "OP";
70
+    const SEGNAME_GROUP_NAME = "NG";
71
+    const SEGNAME_OPTION = "OP";
72 72
     const SEGNAME_OTHER_SPECIAL_INFORMATION = "OS";
73
-    const SEGNAME_PRIORITY_LINE= "PL";
73
+    const SEGNAME_PRIORITY_LINE = "PL";
74 74
     const SEGNAME_CONFIDENTIAL_REMARK = "RC";
75 75
     const SEGNAME_RECEIVE_FROM = "RF";
76 76
     const SEGNAME_INVOICE_REMARK = "RI";
77
-    const SEGNAME_GENERAL_REMARK= "RM";
77
+    const SEGNAME_GENERAL_REMARK = "RM";
78 78
     const SEGNAME_QUALITY_CONTROL_REMARK = "RQ";
79 79
     const SEGNAME_ASSOCIATED_CROSS_REFERENCE_RECORD = "RR";
80 80
     const SEGNAME_NON_AUTOMATED_MISCELLANEOUS_AUXILIARY = "RU";
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Offer/ConfirmHotel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
                     $params->paymentDetails->ccExpiry
131 131
                 );
132 132
             } else {
133
-                throw new InvalidArgumentException('Hotel Offer Confirm Form of Payment ' . $params->formOfPayment . ' is not yet supported');
133
+                throw new InvalidArgumentException('Hotel Offer Confirm Form of Payment '.$params->formOfPayment.' is not yet supported');
134 134
             }
135 135
         }
136 136
     }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Pnr/AddMultiElements.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                 throw new \RuntimeException('NOT YET IMPLEMENTED');
224 224
                 break;
225 225
             default:
226
-                throw new InvalidArgumentException('Segment type ' . $segmentType . ' is not supported');
226
+                throw new InvalidArgumentException('Segment type '.$segmentType.' is not supported');
227 227
                 break;
228 228
         }
229 229
 
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
                 $createdElement->frequentTravellerData = new FrequentTravellerData($element);
503 503
                 break;
504 504
             default:
505
-                throw new InvalidArgumentException('Element type ' . $elementType . ' is not supported');
505
+                throw new InvalidArgumentException('Element type '.$elementType.' is not supported');
506 506
         }
507 507
 
508 508
         if (!empty($element->references)) {
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/SalesReports/DisplayQueryReport.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
     }
135 135
 
136 136
     /**
137
-     * @param array|null $requestOptions
137
+     * @param string[] $requestOptions
138 138
      */
139 139
     protected function loadRequestOptions($requestOptions)
140 140
     {
Please login to merge, or discard this patch.
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
@@ -447,9 +447,9 @@  discard block
 block discarded – undo
447 447
      */
448 448
     protected function extractMessageVersion($fullVersionString)
449 449
     {
450
-        $marker = strpos($fullVersionString, '_', strpos($fullVersionString, '_')+1);
450
+        $marker = strpos($fullVersionString, '_', strpos($fullVersionString, '_') + 1);
451 451
 
452
-        $num = substr($fullVersionString, $marker+1);
452
+        $num = substr($fullVersionString, $marker + 1);
453 453
 
454 454
         return str_replace('_', '.', $num);
455 455
     }
@@ -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\Exception('WSDL ' . $wsdlFilePath . ' could not be loaded');
483
+                throw new Client\Exception('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\Exception('WSDL ' . $importPath . ' import could not be loaded');
589
+            throw new Client\Exception('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/Session/Handler/SoapHeader4.php 1 patch
Spacing   +13 added lines, -14 removed lines patch added patch discarded remove patch
@@ -279,8 +279,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.