@@ -341,7 +341,7 @@ |
||
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) |
@@ -39,7 +39,7 @@ |
||
39 | 39 | const INDICATOR_NOT_REPORTED_REFUND = "NRP"; |
40 | 40 | const INDICATOR_NO_SHOW = "NS"; |
41 | 41 | const INDICATOR_ZERO_REFUND = "NUL"; |
42 | - const INDICATOR_HOLD_FOR_FUTURE_USE= "RTF"; |
|
42 | + const INDICATOR_HOLD_FOR_FUTURE_USE = "RTF"; |
|
43 | 43 | const INDICATOR_TAXES = "TAX"; |
44 | 44 | |
45 | 45 |
@@ -96,7 +96,7 @@ |
||
96 | 96 | * @param string $key |
97 | 97 | * @param string $optionDetail |
98 | 98 | */ |
99 | - public function __construct($key, $optionDetail=null) |
|
99 | + public function __construct($key, $optionDetail = null) |
|
100 | 100 | { |
101 | 101 | $this->pricingOptionKey = new PricingOptionKey($key); |
102 | 102 | if (isset($optionDetail)) { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | { |
56 | 56 | $this->specificTravellerDetails = new SpecificTravellerDetails($referenceNumber); |
57 | 57 | |
58 | - if (! empty($passenger->type)) { |
|
58 | + if (!empty($passenger->type)) { |
|
59 | 59 | $this->fareInfo = new FareInfo($passenger->type); |
60 | 60 | } |
61 | 61 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | protected function loadOptionalSegmentInformation($options) |
71 | 71 | { |
72 | - if (! empty($options->operatingCompany)) { |
|
72 | + if (!empty($options->operatingCompany)) { |
|
73 | 73 | $this->flightDetails->companyDetails->operatingCompany = $options->operatingCompany; |
74 | 74 | } |
75 | 75 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $this->flightDetails->flightDate->setArrivalDate($options->arrivalDate); |
78 | 78 | } |
79 | 79 | |
80 | - if (! empty($options->groupNumber)) { |
|
80 | + if (!empty($options->groupNumber)) { |
|
81 | 81 | $this->flightDetails->flightTypeDetails = new FlightTypeDetails($options->groupNumber); |
82 | 82 | } |
83 | 83 |
@@ -185,6 +185,6 @@ |
||
185 | 185 | |
186 | 186 | $monthAndYear = strtoupper($dateOfBirth->format('My')); |
187 | 187 | |
188 | - return $day . $monthAndYear; |
|
188 | + return $day.$monthAndYear; |
|
189 | 189 | } |
190 | 190 | } |
@@ -214,7 +214,7 @@ |
||
214 | 214 | ); |
215 | 215 | |
216 | 216 | if ($opt->anchoredSegments) { |
217 | - $tmpItinerary->flightInfoPNR = array_map(function ($anchoredSegment) { |
|
217 | + $tmpItinerary->flightInfoPNR = array_map(function($anchoredSegment) { |
|
218 | 218 | return new MasterPricer\FlightInfoPNR( |
219 | 219 | $anchoredSegment |
220 | 220 | ); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function __construct($options) |
66 | 66 | { |
67 | - if (! is_null($options)) { |
|
67 | + if (!is_null($options)) { |
|
68 | 68 | $this->loadPassengers($options->passengers); |
69 | 69 | |
70 | 70 | $this->loadFlightDetails($options->segments); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $counter = 1; |
83 | 83 | foreach ($passengers as $passenger) { |
84 | 84 | $this->passengerInfoGroup[] = new PassengerInfoGroup($passenger, $counter); |
85 | - $counter ++; |
|
85 | + $counter++; |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function __construct($options) |
28 | 28 | { |
29 | 29 | foreach ($options->referenceGroups as $referenceGroup) { |
30 | - $references = array_map(function (Reference $reference) { |
|
30 | + $references = array_map(function(Reference $reference) { |
|
31 | 31 | return new ReferenceDetails( |
32 | 32 | $reference->getType(), |
33 | 33 | $reference->getValue() |