@@ -232,7 +232,6 @@ |
||
| 232 | 232 | * \brief Called every time a post get edited in the channel where the bot is in. |
| 233 | 233 | * \details Override it to script the bot answer for each post edited in a channel. |
| 234 | 234 | * <code>$chat_id</code> set inside of this function. |
| 235 | - * @param Message $post The message edited in the channel. |
|
| 236 | 235 | */ |
| 237 | 236 | protected function processEditedChannelPost(Message $edited_post) |
| 238 | 237 | { |
@@ -6,6 +6,9 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Parser |
| 8 | 8 | { |
| 9 | + /** |
|
| 10 | + * @param string $pathPattern |
|
| 11 | + */ |
|
| 9 | 12 | public function extractPlaceholders(Request $request, $pathPattern) |
| 10 | 13 | { |
| 11 | 14 | preg_match_all('#\{\w+\}#', $pathPattern, $placeholders, PREG_OFFSET_CAPTURE | PREG_SET_ORDER); |
@@ -158,6 +158,7 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | /** |
| 160 | 160 | * @Given TuTu is running on host :host at port :port |
| 161 | + * @param integer $port |
|
| 161 | 162 | */ |
| 162 | 163 | public function tutuIsRunningOnHostAtPort($host, $port) |
| 163 | 164 | { |
@@ -309,7 +310,7 @@ discard block |
||
| 309 | 310 | * @param $method |
| 310 | 311 | * @param $url |
| 311 | 312 | * @param array $parameters |
| 312 | - * @param null $body |
|
| 313 | + * @param string $body |
|
| 313 | 314 | */ |
| 314 | 315 | private function makeHttpCall($method, $url, array $parameters = [], array $headers = [], $body = null) |
| 315 | 316 | { |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | /** |
| 392 | 392 | * \brief Set current chat ID. |
| 393 | 393 | * \details Change the chat ID on which the bot acts. |
| 394 | - * @param $chat_id The new chat ID to set. |
|
| 394 | + * @param string $chat_id The new chat ID to set. |
|
| 395 | 395 | */ |
| 396 | 396 | public function setChatID($chat_id) |
| 397 | 397 | { |
@@ -447,7 +447,6 @@ discard block |
||
| 447 | 447 | * brief Process an API method by taking method and parameter. |
| 448 | 448 | * \details optionally create a object of $class class name with the response as constructor param. |
| 449 | 449 | * @param string $method Method to call. |
| 450 | - * @param array $param Parameter for the method. |
|
| 451 | 450 | * @param string $class Class name of the object to create using response. |
| 452 | 451 | * @return mixed Response or object of $class class name. |
| 453 | 452 | */ |