Completed
Push — develop ( 7cfe1b...a79e07 )
by Dieter
07:00
created
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/Pnr/AddMultiElements/PassengerData.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -30,20 +30,20 @@
 block discarded – undo
30 30
  */
31 31
 class PassengerData
32 32
 {
33
-	/**
34
-	 * @var TravellerInformation
35
-	 */
36
-	public $travellerInformation;
37
-	/**
38
-	 * @var DateOfBirth
39
-	 */
40
-	public $dateOfBirth;
33
+ /**
34
+  * @var TravellerInformation
35
+  */
36
+ public $travellerInformation;
37
+ /**
38
+  * @var DateOfBirth
39
+  */
40
+ public $dateOfBirth;
41 41
 	
42
-	/**
43
-	 * @param string $mainPassengerSurname
44
-	 */
45
-	public function __construct($mainPassengerSurname)
46
-	{
47
-		$this->travellerInformation = new TravellerInformation($mainPassengerSurname);
48
-	}
42
+ /**
43
+  * @param string $mainPassengerSurname
44
+  */
45
+ public function __construct($mainPassengerSurname)
46
+ {
47
+  $this->travellerInformation = new TravellerInformation($mainPassengerSurname);
48
+ }
49 49
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/Pnr/Retrieve.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -32,35 +32,35 @@
 block discarded – undo
32 32
  */
33 33
 class Retrieve extends BaseWsMessage
34 34
 {
35
-	/**
36
-	 * Definition for retrieval type: by record locator
37
-	 * 
38
-	 * see Amadeus Core Webservices documentation 
39
-	 * [Retrieval type, coded codesets (Ref: 109P 1A 00.1.1)]
40
-	 * @var int
41
-	 */
42
-	const RETR_TYPE_BY_RECLOC = 2;
35
+ /**
36
+  * Definition for retrieval type: by record locator
37
+  * 
38
+  * see Amadeus Core Webservices documentation 
39
+  * [Retrieval type, coded codesets (Ref: 109P 1A 00.1.1)]
40
+  * @var int
41
+  */
42
+ const RETR_TYPE_BY_RECLOC = 2;
43 43
 	
44
-	/**
45
-	 * @var Retrieve\Settings
46
-	 */
47
-	public $settings;
48
-	/**
49
-	 * @var Retrieve\RetrievalFacts
50
-	 */
51
-	public $retrievalFacts;
44
+ /**
45
+  * @var Retrieve\Settings
46
+  */
47
+ public $settings;
48
+ /**
49
+  * @var Retrieve\RetrievalFacts
50
+  */
51
+ public $retrievalFacts;
52 52
 	
53
-	/**
54
-	 * Construct PNR_Retrieve message
55
-	 * 
56
-	 * @param int $retrievalType
57
-	 * @param string|null $recordLocator (OPTIONAL)
58
-	 */
59
-	public function __construct($retrievalType = self::RETR_TYPE_BY_RECLOC, $recordLocator = null)
60
-	{
61
-		$this->retrievalFacts = new Retrieve\RetrievalFacts(
62
-			$retrievalType, 
63
-			$recordLocator
64
-		);
65
-	}
53
+ /**
54
+  * Construct PNR_Retrieve message
55
+  * 
56
+  * @param int $retrievalType
57
+  * @param string|null $recordLocator (OPTIONAL)
58
+  */
59
+ public function __construct($retrievalType = self::RETR_TYPE_BY_RECLOC, $recordLocator = null)
60
+ {
61
+  $this->retrievalFacts = new Retrieve\RetrievalFacts(
62
+   $retrievalType, 
63
+   $recordLocator
64
+  );
65
+ }
66 66
 }
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
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
                 throw new \RuntimeException('NOT YET IMPLEMENTED');
223 223
                 break;
224 224
             default:
225
-                throw new InvalidArgumentException('Segment type ' . $segmentType . ' is not supported');
225
+                throw new InvalidArgumentException('Segment type '.$segmentType.' is not supported');
226 226
                 break;
227 227
         }
228 228
 
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
                 $createdElement->frequentTravellerData = new FrequentTravellerData($element);
428 428
                 break;
429 429
             default:
430
-                throw new InvalidArgumentException('Element type ' . $elementType . 'is not supported');
430
+                throw new InvalidArgumentException('Element type '.$elementType.'is not supported');
431 431
         }
432 432
 
433 433
         if (!empty($element->references)) {
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/Struct/Fare/MasterPricer/PricingTicketing.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     const PRICETYPE_TICKETABILITY_PRECHECK = 'TAC';
34 34
     const PRICETYPE_UNIFARES = 'RU';
35 35
     const PRICETYPE_PUBLICFARES = 'RP';
36
-	const PRICETYPE_CORPORATE_UNIFARES = 'RW';
36
+ const PRICETYPE_CORPORATE_UNIFARES = 'RW';
37 37
 
38 38
     /**
39 39
      * self::PRICETYPE_*
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/AirlineInfo.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,13 +30,13 @@
 block discarded – undo
30 30
  */
31 31
 class AirlineInfo
32 32
 {
33
-	/**
34
-	 * @var mixed
35
-	 */
36
-	public $attributeInfo;
33
+ /**
34
+  * @var mixed
35
+  */
36
+ public $attributeInfo;
37 37
 	
38
-	/**
39
-	 * @var mixed
40
-	 */
41
-	public $airlineDetails;
38
+ /**
39
+  * @var mixed
40
+  */
41
+ public $airlineDetails;
42 42
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/AttributeInfo.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -30,30 +30,30 @@
 block discarded – undo
30 30
  */
31 31
 class AttributeInfo
32 32
 {
33
-	const FUNC_GROUPING = "GRP";
33
+ const FUNC_GROUPING = "GRP";
34 34
 	
35
-	const FUNC_PASSENGER = "PSG";
35
+ const FUNC_PASSENGER = "PSG";
36 36
 	
37
-	/**
38
-	 * @var string self::FUNC_*
39
-	 */
40
-	public $attributeFunction;
37
+ /**
38
+  * @var string self::FUNC_*
39
+  */
40
+ public $attributeFunction;
41 41
 	
42
-	/**
43
-	 * @var AttributeDetails[]
44
-	 */
45
-	public $attributeDetails = [];
42
+ /**
43
+  * @var AttributeDetails[]
44
+  */
45
+ public $attributeDetails = [];
46 46
 	
47
-	/**
48
-	 * @param string $function self::FUNC_*
49
-	 * @param array $groupTypes AttributeDetails::TYPE_* strings
50
-	 */
51
-	public function __construct($function = self::FUNC_GROUPING, $groupTypes = [])
52
-	{
53
-		$this->attributeFunction = $function;
47
+ /**
48
+  * @param string $function self::FUNC_*
49
+  * @param array $groupTypes AttributeDetails::TYPE_* strings
50
+  */
51
+ public function __construct($function = self::FUNC_GROUPING, $groupTypes = [])
52
+ {
53
+  $this->attributeFunction = $function;
54 54
 		
55
-		foreach ($groupTypes as $groupType) {
56
-			$this->attributeDetails[] = new AttributeDetails($groupType);
57
-		}
58
-	}
55
+  foreach ($groupTypes as $groupType) {
56
+   $this->attributeDetails[] = new AttributeDetails($groupType);
57
+  }
58
+ }
59 59
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/DaySelection.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -30,24 +30,24 @@
 block discarded – undo
30 30
  */
31 31
 class DaySelection
32 32
 {
33
-	/**
34
-	 * Each wanted day of the week in a string
35
-	 * 
36
-	 * e.g. "123" for Monday, Tuesday and Wednesday.
37
-	 * Must be consecutive.
38
-	 * 
39
-	 * @var string
40
-	 */
41
-	public $dayOfWeek;
33
+ /**
34
+  * Each wanted day of the week in a string
35
+  * 
36
+  * e.g. "123" for Monday, Tuesday and Wednesday.
37
+  * Must be consecutive.
38
+  * 
39
+  * @var string
40
+  */
41
+ public $dayOfWeek;
42 42
 	
43
-	/**
44
-	 * @param array $weekDays Week days in array format: e.g. array(1, 2) for Monday and Tuesday. MUST BE CONSECUTIVE DAYS
45
-	 */
46
-	public function __construct($weekDays)
47
-	{
48
-		$this->dayOfWeek = "";
49
-		foreach ($weekDays as $weekDay) {
50
-			$this->dayOfWeek .= $weekDay;
51
-		}
52
-	}
43
+ /**
44
+  * @param array $weekDays Week days in array format: e.g. array(1, 2) for Monday and Tuesday. MUST BE CONSECUTIVE DAYS
45
+  */
46
+ public function __construct($weekDays)
47
+ {
48
+  $this->dayOfWeek = "";
49
+  foreach ($weekDays as $weekDay) {
50
+   $this->dayOfWeek .= $weekDay;
51
+  }
52
+ }
53 53
 }
Please login to merge, or discard this patch.