@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | /** |
| 56 | 56 | * Command execute method |
| 57 | 57 | * |
| 58 | - * @return \Longman\TelegramBot\Entities\ServerResponse|mixed |
|
| 58 | + * @return \Longman\TelegramBot\Entities\ServerResponse |
|
| 59 | 59 | * @throws \Longman\TelegramBot\Exception\TelegramException |
| 60 | 60 | */ |
| 61 | 61 | public function execute() |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | * |
| 330 | 330 | * @todo Why send just to the first found channel? |
| 331 | 331 | * |
| 332 | - * @return mixed |
|
| 332 | + * @return \Longman\TelegramBot\Entities\ServerResponse |
|
| 333 | 333 | * @throws \Longman\TelegramBot\Exception\TelegramException |
| 334 | 334 | */ |
| 335 | 335 | public function executeNoDb() |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | $notes['state'] = 0; |
| 129 | 129 | $this->conversation->update(); |
| 130 | 130 | |
| 131 | - $keyboard = array_map(function ($channel) { |
|
| 131 | + $keyboard = array_map(function($channel) { |
|
| 132 | 132 | return [$channel]; |
| 133 | 133 | }, $channels); |
| 134 | 134 | |
@@ -856,7 +856,7 @@ |
||
| 856 | 856 | protected function ucfirstUnicode($str, $encoding = 'UTF-8') |
| 857 | 857 | { |
| 858 | 858 | return mb_strtoupper(mb_substr($str, 0, 1, $encoding), $encoding) |
| 859 | - . mb_strtolower(mb_substr($str, 1, mb_strlen($str), $encoding), $encoding); |
|
| 859 | + . mb_strtolower(mb_substr($str, 1, mb_strlen($str), $encoding), $encoding); |
|
| 860 | 860 | } |
| 861 | 861 | |
| 862 | 862 | /** |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | if ($this->last_update_id !== null) { |
| 363 | - $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation |
|
| 363 | + $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation |
|
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | $response = Request::getUpdates( |
@@ -833,7 +833,7 @@ discard block |
||
| 833 | 833 | throw new TelegramException('Hook url is empty!'); |
| 834 | 834 | } |
| 835 | 835 | |
| 836 | - $data = array_intersect_key($data, array_flip([ |
|
| 836 | + $data = array_intersect_key($data, array_flip([ |
|
| 837 | 837 | 'certificate', |
| 838 | 838 | 'max_connections', |
| 839 | 839 | 'allowed_updates', |
@@ -947,7 +947,7 @@ discard block |
||
| 947 | 947 | } |
| 948 | 948 | |
| 949 | 949 | $this->run_commands = true; |
| 950 | - $this->botan_enabled = false; // Force disable Botan.io integration, we don't want to track self-executed commands! |
|
| 950 | + $this->botan_enabled = false; // Force disable Botan.io integration, we don't want to track self-executed commands! |
|
| 951 | 951 | |
| 952 | 952 | $result = Request::getMe(); |
| 953 | 953 | |
@@ -964,8 +964,8 @@ discard block |
||
| 964 | 964 | } |
| 965 | 965 | |
| 966 | 966 | |
| 967 | - $this->enableAdmin($bot_id); // Give bot access to admin commands |
|
| 968 | - $this->getCommandsList(); // Load full commands list |
|
| 967 | + $this->enableAdmin($bot_id); // Give bot access to admin commands |
|
| 968 | + $this->getCommandsList(); // Load full commands list |
|
| 969 | 969 | |
| 970 | 970 | foreach ($commands as $command) { |
| 971 | 971 | $this->update = new Update( |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | |
| 62 | 62 | /** @var ServerResponse[] $results */ |
| 63 | 63 | $results = Request::sendToActiveChats( |
| 64 | - 'sendMessage', //callback function to execute (see Request.php methods) |
|
| 64 | + 'sendMessage', //callback function to execute (see Request.php methods) |
|
| 65 | 65 | ['text' => $text], //Param to evaluate the request |
| 66 | 66 | [ |
| 67 | 67 | 'groups' => true, |