@@ -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() |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | public function __construct($fareQualifier, $rateCategory) |
40 | 40 | { |
41 | - $this->fareQualifier = (string)$fareQualifier; |
|
42 | - $this->rateCategory = (string)$rateCategory; |
|
41 | + $this->fareQualifier = (string) $fareQualifier; |
|
42 | + $this->rateCategory = (string) $rateCategory; |
|
43 | 43 | } |
44 | 44 | } |
@@ -35,6 +35,6 @@ |
||
35 | 35 | |
36 | 36 | public function __construct($otherCompany) |
37 | 37 | { |
38 | - $this->otherCompany = (string)$otherCompany; |
|
38 | + $this->otherCompany = (string) $otherCompany; |
|
39 | 39 | } |
40 | 40 | } |
@@ -40,7 +40,7 @@ |
||
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 | } |
@@ -41,8 +41,8 @@ |
||
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 | } |