@@ -167,7 +167,7 @@ |
||
| 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 = []; |
@@ -179,7 +179,7 @@ |
||
| 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(), |
@@ -27,7 +27,7 @@ |
||
| 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 | ); |
@@ -27,7 +27,7 @@ discard block |
||
| 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 |
||
| 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, |