Completed
Push — master ( 7d15ad...041b6d )
by Mehmet
03:10
created
src/API/ValueObject/Factory/RetrieveReservationDetailParametersFactory.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/API/ValueObject/Factory/GetAvailabilityParametersFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'],
Please login to merge, or discard this patch.
src/API/Helper/DurationConverter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/API/Client.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
     private function httpRequest(EndpointInterface $endpoint) : ResponseInterface
168 168
     {
169 169
         $this->headers = array_merge($this->headers, $endpoint->getHeaders());
170
-           $queryParams = $this->getQueryParams($endpoint);
170
+            $queryParams = $this->getQueryParams($endpoint);
171 171
 
172 172
         $uri = $this->environment->getApiUrl() . $endpoint->getEndpoint();
173 173
         $options = [];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
         if ($httpRequestMethod === self::HTTP_GET) {
180 180
             $uri .= '?' . http_build_query($queryParams);
181 181
         }
182
-        $uri .=  '?apikey='. $this->environment->getApiKey();
182
+        $uri .= '?apikey=' . $this->environment->getApiKey();
183 183
         $options['headers'] = $this->headers;
184 184
         $this->logger->debug(
185 185
             'API call for :' . $endpoint->getEndpoint(),
Please login to merge, or discard this patch.
src/API/ValueObject/GetPortListParameters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     private function setAirlineCode(?string $airlineCode) : void
29 29
     {
30
-        if (! in_array($airlineCode, self::$airlineCodeEnum, true)) {
30
+        if (!in_array($airlineCode, self::$airlineCodeEnum, true)) {
31 31
             throw new InvalidArgumentException(
32 32
                 'Invalid AirlineCode provided. Must be one of these: "TK", "AJ"'
33 33
             );
Please login to merge, or discard this patch.
src/API/Environment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $this->appName = $appName;
28 28
     }
29 29
 
30
-    public static function createWithUserName (
30
+    public static function createWithUserName(
31 31
         string $apiUrl,
32 32
         string $apiKey,
33 33
         string $apiSecret,
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     ) :self {
37 37
         return new self($apiUrl, $apiKey, $apiSecret, $clientUsername, null, $channel);
38 38
     }
39
-    public static function createWithAppName (
39
+    public static function createWithAppName(
40 40
         string $apiUrl,
41 41
         string $apiKey,
42 42
         string $apiSecret,
Please login to merge, or discard this patch.