@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public static function createFromArray(array $parameters): RetrieveReservationDetailParameters |
| 16 | 16 | { |
| 17 | - return new RetrieveReservationDetailParameters($parameters['UniqueId'], $parameters['Surname']); |
|
| 17 | + return new RetrieveReservationDetailParameters($parameters['UniqueId'], $parameters['Surname']); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public static function createFromJson(string $json): RetrieveReservationDetailParameters |
| 28 | 28 | { |
| 29 | - $parameters = json_decode($json, (bool)JSON_OBJECT_AS_ARRAY); |
|
| 29 | + $parameters = json_decode($json, (bool) JSON_OBJECT_AS_ARRAY); |
|
| 30 | 30 | if (json_last_error() !== JSON_ERROR_NONE) { |
| 31 | 31 | throw new InvalidArgumentException( |
| 32 | 32 | 'RetrieveReservationDetailParametersFactory Error: ' . json_last_error_msg() |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | $originDestinationInformation['OriginLocation']['LocationCode'], |
| 27 | 27 | $originDestinationInformation['OriginLocation']['MultiAirportCityInd'] |
| 28 | 28 | ); |
| 29 | - $destinationLocation = new Location( |
|
| 29 | + $destinationLocation = new Location( |
|
| 30 | 30 | $originDestinationInformation['DestinationLocation']['LocationCode'], |
| 31 | 31 | $originDestinationInformation['DestinationLocation']['MultiAirportCityInd'] |
| 32 | 32 | ); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | $originDestinationInformations[] = $originDestinationInformationObject; |
| 50 | 50 | } |
| 51 | - $passengerTypeQuantityObject = new PassengerTypeQuantity(); |
|
| 51 | + $passengerTypeQuantityObject = new PassengerTypeQuantity(); |
|
| 52 | 52 | foreach ($parameters['PassengerTypeQuantity'] as $passengerTypeQuantity) { |
| 53 | 53 | $passengerTypeQuantityObject->withQuantity( |
| 54 | 54 | $passengerTypeQuantity['Code'], |
@@ -18,13 +18,13 @@ |
||
| 18 | 18 | { |
| 19 | 19 | if ($format === 'l') { |
| 20 | 20 | preg_match('/^P(.*?)Y(.*?)M(.*?)DT(.*?)H(.*?)M(.*?)S$/', $duration, $matches); |
| 21 | - [, $year, $month, $day, $hour, $minute, $second] = array_map(function ($item) { |
|
| 21 | + [, $year, $month, $day, $hour, $minute, $second] = array_map(function($item) { |
|
| 22 | 22 | return (float) $item; |
| 23 | 23 | }, $matches); |
| 24 | 24 | return [$year, $month, $day, $hour, $minute, $second]; |
| 25 | 25 | } |
| 26 | 26 | preg_match('/^P(.*?)DT(.*?)H(.*?)M(.*?)S$/', $duration, $matches); |
| 27 | - [, $day, $hour, $minute, $second] = array_map(function ($item) { |
|
| 27 | + [, $day, $hour, $minute, $second] = array_map(function($item) { |
|
| 28 | 28 | return (float) $item; |
| 29 | 29 | }, $matches); |
| 30 | 30 | return [0, 0, $day, $hour, $minute, $second]; |