Passed
Push — master ( 8d01ff...6c8080 )
by Artem
03:24
created
Client/Struct/Fare/GetFareFamilyDescription/ItineraryInformation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public function __construct(ItineraryInfo $itineraryInfo)
42 42
     {
43
-        $this->origin = (string)$itineraryInfo->origin;
44
-        $this->destination = (string)$itineraryInfo->destination;
43
+        $this->origin = (string) $itineraryInfo->origin;
44
+        $this->destination = (string) $itineraryInfo->destination;
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Fare/GetFareFamilyDescription/DateTime.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
 
42 42
     public function __construct(\DateTime $dateTime)
43 43
     {
44
-        $this->year = (int)$dateTime->format('Y');
45
-        $this->month = (int)$dateTime->format('m');
46
-        $this->day = (int)$dateTime->format('d');
44
+        $this->year = (int) $dateTime->format('Y');
45
+        $this->month = (int) $dateTime->format('m');
46
+        $this->day = (int) $dateTime->format('d');
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/RequestOptions/Fop/ThreeDSecureInfo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
     const CREDIT_CARD_COMPANY_JCB = 'JCDS';
61 61
 
62 62
     const AUTHENTICATION_VERIFICATION_CODE_VISA = 'CAVV';
63
-    const AUTHENTICATION_VERIFICATION_CODE_AMERICAN_EXPRESS  = 'AEVV';
64
-    const AUTHENTICATION_VERIFICATION_CODE_MASTERCARD  = 'AAV';
63
+    const AUTHENTICATION_VERIFICATION_CODE_AMERICAN_EXPRESS = 'AEVV';
64
+    const AUTHENTICATION_VERIFICATION_CODE_MASTERCARD = 'AAV';
65 65
 
66 66
     /**
67 67
      * VERES status
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     /**
175 175
      * @var string
176 176
      */
177
-    public $tdsAuthenticationVerificationCodeDataType =  self::DATATYPE_BINARY;
177
+    public $tdsAuthenticationVerificationCodeDataType = self::DATATYPE_BINARY;
178 178
 
179 179
     /**
180 180
      * 3DS authentication verification code
Please login to merge, or discard this patch.
src/Amadeus/Client/SoapClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      */
91 91
     protected function transformIncomingRequest($request)
92 92
     {
93
-        $xsltFile = __DIR__ .DIRECTORY_SEPARATOR.self::REMOVE_EMPTY_XSLT_LOCATION;
93
+        $xsltFile = __DIR__.DIRECTORY_SEPARATOR.self::REMOVE_EMPTY_XSLT_LOCATION;
94 94
         if (!is_readable($xsltFile)) {
95 95
             throw new Exception('XSLT file "'.$xsltFile.'" is not readable!');
96 96
         }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Fop/TdsBlbData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     public function __construct($binaryData, $dataType, $dataLength)
65 65
     {
66 66
         if (!is_null($dataLength)) {
67
-            $this->dataLength = (int)$dataLength;
67
+            $this->dataLength = (int) $dataLength;
68 68
         } else {
69 69
             $this->dataLength = mb_strlen(base64_decode($binaryData));
70 70
         }
Please login to merge, or discard this patch.
src/Amadeus/Client/Session/Handler/SoapHeader4.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
             //Generate nonce, msg creation string & password digest:
308 308
             $password = base64_decode($params->authParams->passwordData);
309 309
             $creation = new \DateTime('now', new \DateTimeZone('UTC'));
310
-            $t = (float)microtime(true);
310
+            $t = (float) microtime(true);
311 311
             $micro = sprintf("%03d", ($t - floor($t)) * 1000);
312 312
             $creationString = $this->createDateTimeStringForAuth($creation, $micro);
313 313
             $messageNonce = $this->generateUniqueNonce($params->authParams->nonceBase, $creationString);
@@ -420,14 +420,14 @@  discard block
 block discarded – undo
420 420
      */
421 421
     protected function generateGuid()
422 422
     {
423
-        mt_srand((int)microtime(true));
423
+        mt_srand((int) microtime(true));
424 424
         $charId = strtoupper(md5(uniqid(mt_rand(), true)));
425 425
         $hyphen = chr(45); // "-"
426 426
 
427
-        $uuid = substr($charId, 0, 8) . $hyphen
428
-            . substr($charId, 8, 4) . $hyphen
429
-            . substr($charId, 12, 4) . $hyphen
430
-            . substr($charId, 16, 4) . $hyphen
427
+        $uuid = substr($charId, 0, 8).$hyphen
428
+            . substr($charId, 8, 4).$hyphen
429
+            . substr($charId, 12, 4).$hyphen
430
+            . substr($charId, 16, 4).$hyphen
431 431
             . substr($charId, 20, 12);
432 432
 
433 433
         return $uuid;
@@ -444,10 +444,10 @@  discard block
 block discarded – undo
444 444
     {
445 445
         return '<oas:Security xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
446 446
 	<oas:UsernameToken xmlns:oas1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" oas1:Id="UsernameToken-1">
447
-		<oas:Username>' . $originator . '</oas:Username>
448
-		<oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce . '</oas:Nonce>
449
-		<oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest . '</oas:Password>
450
-		<oas1:Created>' . $creationTimeString . '</oas1:Created>
447
+		<oas:Username>' . $originator.'</oas:Username>
448
+		<oas:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">' . $nonce.'</oas:Nonce>
449
+		<oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">' . $pwDigest.'</oas:Password>
450
+		<oas1:Created>' . $creationTimeString.'</oas1:Created>
451 451
 	</oas:UsernameToken>
452 452
 </oas:Security>';
453 453
     }
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
     {
463 463
         return substr(
464 464
             sha1(
465
-                $nonceBase . $creationString,
465
+                $nonceBase.$creationString,
466 466
                 true
467 467
             ),
468 468
             0,
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
      */
492 492
     protected function generatePasswordDigest($password, $creationString, $messageNonce)
493 493
     {
494
-        return base64_encode(sha1($messageNonce . $creationString . sha1($password, true), true));
494
+        return base64_encode(sha1($messageNonce.$creationString.sha1($password, true), true));
495 495
     }
496 496
 
497 497
     /**
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
     {
504 504
         $creationDateTime->setTimezone(new \DateTimeZone('UTC'));
505 505
 
506
-        return $creationDateTime->format("Y-m-d\TH:i:s:") . $micro . 'Z';
506
+        return $creationDateTime->format("Y-m-d\TH:i:s:").$micro.'Z';
507 507
     }
508 508
 
509 509
     /**
Please login to merge, or discard this patch.