Completed
Push — fopcreatefop ( 43117b...97f2d4 )
by Dieter
06:06
created
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/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.
src/Amadeus/Client/Struct/Pnr/NameChange/TravellerNameInfo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      *
170 170
      * @param int $identifier
171 171
      * @param string|null $type
172
-     * @param string|int|null $infantIndicator
172
+     * @param integer|null $infantIndicator
173 173
      */
174 174
     public function __construct($identifier, $type = null, $infantIndicator = null)
175 175
     {
Please login to merge, or discard this patch.
src/Amadeus/Client/ResponseHandler/StandardResponseHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Fop/AddressDetails.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     public function __construct($addressLines)
77 77
     {
78 78
         foreach ($addressLines as $key => $line) {
79
-            $lineNumProp = 'line'.($key+1);
79
+            $lineNumProp = 'line'.($key + 1);
80 80
             if (property_exists($this, $lineNumProp)) {
81 81
                 $this->$lineNumProp = $line;
82 82
             }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Fop/ExtendedPaymentDetails.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
                 $date = $startDate->format('yz');
173 173
                 break;
174 174
             default:
175
-                throw new \RuntimeException("Installments Format '" . $format . "' is not implemented!");
175
+                throw new \RuntimeException("Installments Format '".$format."' is not implemented!");
176 176
         }
177 177
 
178 178
         return $date;
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Fare/MasterPricer/FeeId.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,11 +59,11 @@
 block discarded – undo
59 59
     public $feeIdNumber;
60 60
 
61 61
     /**
62
-      * FeeId constructor.
63
-      *
64
-      * @param string|null $feeType
65
-      * @param int|null $feeIdNumber
66
-      */
62
+     * FeeId constructor.
63
+     *
64
+     * @param string|null $feeType
65
+     * @param int|null $feeIdNumber
66
+     */
67 67
     public function __construct($feeType = null, $feeIdNumber = null)
68 68
     {
69 69
         if (!is_null($feeType)) {
Please login to merge, or discard this patch.