@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | public function downloadFile(File $file): TelegramDocument |
112 | 112 | { |
113 | 113 | $this->logger->debug('Downloading file from Telegram, creating URL'); |
114 | - $url = 'https://api.telegram.org/file/bot' . $this->botToken . '/' . $file->file_path; |
|
114 | + $url = 'https://api.telegram.org/file/bot'.$this->botToken.'/'.$file->file_path; |
|
115 | 115 | $this->logger->debug('About to perform request to begin downloading file'); |
116 | 116 | return new TelegramDocument($this->httpClient->get($url)); |
117 | 117 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | final private function constructApiUrl(): TgLog |
124 | 124 | { |
125 | - $this->apiUrl = 'https://api.telegram.org/bot' . $this->botToken . '/'; |
|
125 | + $this->apiUrl = 'https://api.telegram.org/bot'.$this->botToken.'/'; |
|
126 | 126 | $this->logger->debug('Built up the API URL'); |
127 | 127 | return $this; |
128 | 128 | } |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | $this->methodName = substr($completeClassName, strrpos($completeClassName, '\\') + 1); |
237 | 237 | $this->logger->info('About to perform API request', ['method' => $this->methodName]); |
238 | 238 | |
239 | - return $this->apiUrl . $this->methodName; |
|
239 | + return $this->apiUrl.$this->methodName; |
|
240 | 240 | } |
241 | 241 | |
242 | 242 | /** |
@@ -146,7 +146,7 @@ |
||
146 | 146 | $e = null; |
147 | 147 | $this->logger->debug('About to perform HTTP call to Telegram\'s API'); |
148 | 148 | try { |
149 | - /** @noinspection PhpMethodParametersCountMismatchInspection */ |
|
149 | + /** @noinspection PhpMethodParametersCountMismatchInspection */ |
|
150 | 150 | $response = $this->httpClient->post($this->composeApiMethodUrl($method), $formData); |
151 | 151 | $this->logger->debug('Got response back from Telegram, applying json_decode'); |
152 | 152 | } catch (ClientException $e) { |