Completed
Pull Request — master (#182)
by
unknown
02:33
created
src/Commands/Command.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -155,6 +155,7 @@
 block discarded – undo
155 155
 
156 156
     /**
157 157
      * {@inheritdoc}
158
+     * @param string $arguments
158 159
      */
159 160
     abstract public function handle($arguments);
160 161
 }
Please login to merge, or discard this patch.
src/Events/UpdateWasReceived.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
      * UpdateWasReceived constructor.
24 24
      *
25 25
      * @param Update $update
26
-     * @param Api    $telegram
27 26
      */
28 27
     public function __construct(Update $update, Bot $bot)
29 28
     {
Please login to merge, or discard this patch.
src/Answers/Answerable.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Telegram\Bot\Answers;
4 4
 
5 5
 use Telegram\Bot\Api;
6
-use Telegram\Bot\Objects\Update;
7 6
 use Telegram\Bot\Bots\Bot;
7
+use Telegram\Bot\Objects\Update;
8 8
 
9 9
 /**
10 10
  * Class Answer
Please login to merge, or discard this patch.
src/Laravel/TelegramServiceProvider.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Telegram\Bot\Laravel;
4 4
 
5
-use Telegram\Bot\Bots\Bot;
6
-use Telegram\Bot\Bots\BotsManager;
7
-use Illuminate\Support\ServiceProvider;
8 5
 use Illuminate\Contracts\Container\Container as Application;
9
-use Laravel\Lumen\Application as LumenApplication;
10 6
 use Illuminate\Foundation\Application as LaravelApplication;
7
+use Illuminate\Support\ServiceProvider;
8
+use Laravel\Lumen\Application as LumenApplication;
9
+use Telegram\Bot\Bots\Bot;
10
+use Telegram\Bot\Bots\BotsManager;
11 11
 
12 12
 /**
13 13
  * Class TelegramServiceProvider.
Please login to merge, or discard this patch.
src/Commands/CommandBus.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * Returns the list of commands.
39 39
      *
40
-     * @return array
40
+     * @return Command[]
41 41
      */
42 42
     public function getCommands()
43 43
     {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      *
171 171
      * @throws \InvalidArgumentException
172 172
      *
173
-     * @return array
173
+     * @return string[]
174 174
      */
175 175
     public function parseCommand($text)
176 176
     {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     /**
187 187
      * Handles Inbound Messages and Executes Appropriate Command.
188 188
      *
189
-     * @param $message
189
+     * @param string $message
190 190
      * @param $update
191 191
      *
192 192
      * @throws TelegramSDKException
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
      * Execute the command.
212 212
      *
213 213
      * @param $name
214
-     * @param $arguments
215
-     * @param $message
214
+     * @param string $arguments
215
+     * @param Update $message
216 216
      *
217 217
      * @return mixed
218 218
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Telegram\Bot\Answers;
4 4
 
5 5
 use Telegram\Bot\Api;
6
-use Telegram\Bot\Objects\Update;
7 6
 use Telegram\Bot\Bots\Bot;
7
+use Telegram\Bot\Objects\Update;
8 8
 
9 9
 /**
10 10
  * Class Answer
Please login to merge, or discard this patch.