Completed
Push — master ( f2e847...6eb1b0 )
by Irfaq
02:21
created
src/Api.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      *
152 152
      * @param bool $isAsyncRequest
153 153
      *
154
-     * @return TelegramRequest
154
+     * @return Api
155 155
      */
156 156
     public function setAsyncRequest($isAsyncRequest)
157 157
     {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     /**
212 212
      * Returns list of available commands.
213 213
      *
214
-     * @return array
214
+     * @return Commands\Command[]
215 215
      */
216 216
     public function getCommands()
217 217
     {
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
      *
633 633
      * @throws TelegramSDKException
634 634
      *
635
-     * @return TelegramResponse
635
+     * @return Message
636 636
      */
637 637
     public function setWebhook(array $params)
638 638
     {
@@ -857,7 +857,7 @@  discard block
 block discarded – undo
857 857
     /**
858 858
      * Detect Message Type Based on Update or Message Object.
859 859
      *
860
-     * @param Update|Message $object
860
+     * @param Message $object
861 861
      *
862 862
      * @return string|null
863 863
      */
@@ -922,7 +922,7 @@  discard block
 block discarded – undo
922 922
      * Used primarily for file uploads.
923 923
      *
924 924
      * @param string $endpoint
925
-     * @param array  $params
925
+     * @param string  $params
926 926
      *
927 927
      * @throws TelegramSDKException
928 928
      *
@@ -1047,7 +1047,7 @@  discard block
 block discarded – undo
1047 1047
     /**
1048 1048
      * Check if IoC Container has been set.
1049 1049
      *
1050
-     * @return Container
1050
+     * @return boolean
1051 1051
      */
1052 1052
     public function hasContainer()
1053 1053
     {
Please login to merge, or discard this patch.
src/Commands/CommandBus.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Returns the list of commands.
38 38
      *
39
-     * @return array
39
+     * @return Command[]
40 40
      */
41 41
     public function getCommands()
42 42
     {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     /**
113 113
      * Handles Inbound Messages and Executes Appropriate Command.
114 114
      *
115
-     * @param $message
115
+     * @param string $message
116 116
      * @param $update
117 117
      *
118 118
      * @throws TelegramSDKException
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      *
140 140
      * @throws \InvalidArgumentException
141 141
      *
142
-     * @return array
142
+     * @return string[]
143 143
      */
144 144
     public function parseCommand($text)
145 145
     {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      *
158 158
      * @param $name
159 159
      * @param $arguments
160
-     * @param $message
160
+     * @param Update $message
161 161
      *
162 162
      * @return mixed
163 163
      */
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * Use PHP Reflection and Laravel Container to instantiate the command with type hinted dependecies.
177 177
      *
178
-     * @param $commandClass
178
+     * @param string $commandClass
179 179
      *
180 180
      * @return object
181 181
      */
Please login to merge, or discard this patch.
src/Objects/BaseObject.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     /**
32 32
      * Get an item from the collection by key.
33 33
      *
34
-     * @param mixed $key
34
+     * @param string $key
35 35
      * @param mixed $default
36 36
      *
37 37
      * @return mixed|static
Please login to merge, or discard this patch.
src/TelegramResponse.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
     /**
178 178
      * Returns the exception that was thrown for this request.
179 179
      *
180
-     * @return TelegramSDKException|null
180
+     * @return TelegramSDKException
181 181
      */
182 182
     public function getThrownException()
183 183
     {
Please login to merge, or discard this patch.