Completed
Push — master ( 994f25...6421a3 )
by Dieter
05:46
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/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/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/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.
src/Amadeus/Client/RequestCreator/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $this->checkMessageIsInWsdl($messageName);
97 97
 
98
-        $methodName = 'create' . str_replace("_", "", $messageName);
98
+        $methodName = 'create'.str_replace("_", "", $messageName);
99 99
 
100 100
         if (method_exists($this, $methodName)) {
101 101
             return $this->$methodName($params);
102 102
         } else {
103
-            throw new \RuntimeException('Message ' . $methodName . ' is not implemented in ' . __CLASS__);
103
+            throw new \RuntimeException('Message '.$methodName.' is not implemented in '.__CLASS__);
104 104
         }
105 105
     }
106 106
 
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
     protected function checkMessageIsInWsdl($messageName)
428 428
     {
429 429
         if (!array_key_exists($messageName, $this->messagesAndVersions)) {
430
-            throw new InvalidMessageException('Message "' . $messageName . '" is not in WDSL');
430
+            throw new InvalidMessageException('Message "'.$messageName.'" is not in WDSL');
431 431
         }
432 432
     }
433 433
 
Please login to merge, or discard this patch.
src/Amadeus/Client/RequestCreator/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,6 +59,6 @@
 block discarded – undo
59 59
      */
60 60
     protected static function makeReceivedFrom($original, $libIdentifier)
61 61
     {
62
-        return $original . " " . $libIdentifier;
62
+        return $original." ".$libIdentifier;
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/RequestOptions/Offer/PassengerDef.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,17 +33,17 @@
 block discarded – undo
33 33
 class PassengerDef extends LoadParamsFromArray
34 34
 {
35 35
     /**
36
-    * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2326&serviceVersionId=2298&isQuery=true#
37
-    *
38
-    * Offer_CreateOffer/airPricingRecommendation/paxReference/passengerReference/type
39
-    * Reference qualifier codesets
40
-    * Value   Description
41
-    * P       Passenger/traveller reference number
42
-    * PA      Adult Passenger
43
-    * PI      Infant Passenger
36
+     * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2326&serviceVersionId=2298&isQuery=true#
37
+     *
38
+     * Offer_CreateOffer/airPricingRecommendation/paxReference/passengerReference/type
39
+     * Reference qualifier codesets
40
+     * Value   Description
41
+     * P       Passenger/traveller reference number
42
+     * PA      Adult Passenger
43
+     * PI      Infant Passenger
44 44
      *
45 45
      * @var string
46
-    */
46
+     */
47 47
     public $passengerType = "P";
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
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.