@@ -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 | /** |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * Traverses through our $data, yielding the result set |
| 30 | 30 | * |
| 31 | - * @return ChatMember[] |
|
| 31 | + * @return \Generator |
|
| 32 | 32 | */ |
| 33 | 33 | public function traverseObject() |
| 34 | 34 | { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * Traverses through our $data, yielding the result set |
| 32 | 32 | * |
| 33 | - * @return Button[] |
|
| 33 | + * @return \Generator |
|
| 34 | 34 | */ |
| 35 | 35 | public function traverseObject() |
| 36 | 36 | { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * Traverses through our $data, yielding the result set |
| 32 | 32 | * |
| 33 | - * @return KeyboardButton[] |
|
| 33 | + * @return \Generator |
|
| 34 | 34 | */ |
| 35 | 35 | public function traverseObject() |
| 36 | 36 | { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * Traverses through our $data, yielding the result set |
| 30 | 30 | * |
| 31 | - * @return MessageEntity[] |
|
| 31 | + * @return \Generator |
|
| 32 | 32 | */ |
| 33 | 33 | public function traverseObject() |
| 34 | 34 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Traverses through our $data, yielding the result set |
| 31 | 31 | * |
| 32 | - * @return Update[] |
|
| 32 | + * @return \Generator |
|
| 33 | 33 | */ |
| 34 | 34 | public function traverseObject() |
| 35 | 35 | { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | /** |
| 34 | 34 | * Traverses through our $data, yielding the result set |
| 35 | 35 | * |
| 36 | - * @return PhotoSize[] |
|
| 36 | + * @return \Generator |
|
| 37 | 37 | */ |
| 38 | 38 | public function traverseObject() |
| 39 | 39 | { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | /** |
| 34 | 34 | * Traverses through our $data, yielding the result set |
| 35 | 35 | * |
| 36 | - * @return PhotoSize[] |
|
| 36 | + * @return \Generator |
|
| 37 | 37 | */ |
| 38 | 38 | public function traverseObject() |
| 39 | 39 | { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * Traverses through our $data, yielding the result set |
| 30 | 30 | * |
| 31 | - * @return ChatMember[] |
|
| 31 | + * @return \Generator |
|
| 32 | 32 | */ |
| 33 | 33 | public function traverseObject() |
| 34 | 34 | { |