Completed
Push — develop ( d80139...722dcc )
by Dieter
07:35 queued 01:02
created
src/Amadeus/Client/Struct/HeaderV4/SecurityHostedUser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     /**
39 39
      * @param string $pseudoCityCode
40 40
      * @param string|null $requestorType
41
-     * @param int|null $posType
41
+     * @param integer $posType
42 42
      * @param string|null $agentDutyCode
43 43
      */
44 44
     public function __construct($pseudoCityCode, $requestorType = "U", $posType = 1, $agentDutyCode = null)
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/ExtremeSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
     {
210 210
         $result = [];
211 211
 
212
-        switch($groupTypeString) {
212
+        switch ($groupTypeString) {
213 213
             case PriceXplorerExtremeSearchOptions::AGGR_DEST:
214 214
                 $result[] = AttributeDetails::TYPE_DESTINATION;
215 215
                 break;
Please login to merge, or discard this patch.
src/Amadeus/Client/RequestOptions/Fare/MPPassenger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     const TYPE_CHILD = "CH";
38 38
 
39
-    const TYPE_INFANT= "INF";
39
+    const TYPE_INFANT = "INF";
40 40
 
41 41
     /**
42 42
      * What type of passengers? self::TYPE_*
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Fare/ConvertCurrency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      *
61 61
      * @param FareConvertCurrencyOptions $params
62 62
      */
63
-    public function __construct (FareConvertCurrencyOptions $params)
63
+    public function __construct(FareConvertCurrencyOptions $params)
64 64
     {
65 65
         $this->message = new MsgType(MessageFunctionDetails::FARE_CURRENCY_CONVERSION);
66 66
 
Please login to merge, or discard this patch.
src/Amadeus/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
         $this->requestCreator = $this->loadRequestCreator(
192 192
             $params->requestCreator,
193 193
             $params->requestCreatorParams,
194
-            self::receivedFromIdentifier . "-" .self::version,
194
+            self::receivedFromIdentifier."-".self::version,
195 195
             $this->sessionHandler->getOriginatorOffice(),
196 196
             $this->sessionHandler->getMessagesAndVersions()
197 197
         );
Please login to merge, or discard this patch.
src/Amadeus/Client/ResponseHandler/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function analyzeResponse($sendResult, $messageName)
55 55
     {
56
-        $methodName = 'analyze' . str_replace('_', '', ucfirst($messageName)) . 'Response';
56
+        $methodName = 'analyze'.str_replace('_', '', ucfirst($messageName)).'Response';
57 57
 
58 58
         if (!empty($sendResult->exception)) {
59 59
             return $this->makeResultForException($sendResult);
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
         $msgNode = $domXpath->query('//m:errorsDescription/m:errorWarningDescription/m:freeText')->item(0);
546 546
 
547 547
         if ($msgNode instanceof \DOMNode) {
548
-            if (trim($msgNode->nodeValue) === "OFFER CONFIRMED SUCCESSFULLY" || trim($msgNode->nodeValue) === "OFFER VERIFIED SUCCESSFULLY" ) {
548
+            if (trim($msgNode->nodeValue) === "OFFER CONFIRMED SUCCESSFULLY" || trim($msgNode->nodeValue) === "OFFER VERIFIED SUCCESSFULLY") {
549 549
                 $analyzeResponse->messages[] = new Result\NotOk(
550 550
                     0,
551 551
                     trim($msgNode->nodeValue)
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
         $errorMessage = (array_key_exists($errorCode, $recognizedErrors)) ? $recognizedErrors[$errorCode] : '';
714 714
 
715 715
         if ($errorMessage === '') {
716
-            $errorMessage = "QUEUE ERROR '" . $errorCode . "' (Error message unavailable)";
716
+            $errorMessage = "QUEUE ERROR '".$errorCode."' (Error message unavailable)";
717 717
         }
718 718
 
719 719
         return $errorMessage;
Please login to merge, or discard this patch.
src/Amadeus/Client/Util/SomewhatRandomGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@
 block discarded – undo
39 39
     public static function generateSomewhatRandomString($length = 22)
40 40
     {
41 41
         $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz";
42
-        srand((double)microtime()*1000000);
42
+        srand((double) microtime() * 1000000);
43 43
         $i = 0;
44
-        $somewhatRandom = '' ;
44
+        $somewhatRandom = '';
45 45
 
46 46
         while ($i < $length) {
47 47
             $num = rand() % 60;
48 48
             $tmp = substr($chars, $num, 1);
49
-            $somewhatRandom = $somewhatRandom . $tmp;
49
+            $somewhatRandom = $somewhatRandom.$tmp;
50 50
             $i++;
51 51
         }
52 52
 
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Pnr/AddMultiElements/AirAuxItinerary.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function __construct($segmentType, $segmentContent)
64 64
     {
65
-        switch($segmentType) {
65
+        switch ($segmentType) {
66 66
             case 'Miscellaneous':
67 67
                 $this->loadMiscellaneous($segmentContent);
68 68
                 break;
@@ -70,7 +70,7 @@  discard block
 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/Fare/PricePNRWithBookingClass13.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
 
122 122
         $po->optionDetail = new OptionDetail();
123 123
         $po->optionDetail->criteriaDetails[] = new CriteriaDetails(
124
-            $pricingFareBasis->fareBasisPrimaryCode . $pricingFareBasis->fareBasisCode
124
+            $pricingFareBasis->fareBasisPrimaryCode.$pricingFareBasis->fareBasisCode
125 125
         );
126 126
 
127 127
         $po->paxSegTstReference = new PaxSegTstReference($pricingFareBasis->segmentReference);
Please login to merge, or discard this patch.