@@ -55,7 +55,7 @@ |
||
55 | 55 | /** |
56 | 56 | * Is it the right plugin for the command? |
57 | 57 | * @param string $command |
58 | - * @return boolean |
|
58 | + * @return integer |
|
59 | 59 | */ |
60 | 60 | function isLikely($command) { |
61 | 61 | return preg_match(JarvisLanguage::translate('preg_match_activate_plugin',get_called_class()), $command); |
@@ -92,7 +92,7 @@ |
||
92 | 92 | /** |
93 | 93 | * Is it the right plugin for the command? |
94 | 94 | * @param string $command |
95 | - * @return boolean |
|
95 | + * @return integer |
|
96 | 96 | */ |
97 | 97 | function isLikely($command) { |
98 | 98 | return preg_match(JarvisLanguage::translate('preg_match_activate_plugin',get_called_class()), $command); |
@@ -86,7 +86,7 @@ |
||
86 | 86 | /** |
87 | 87 | * Is it the right plugin for the command? |
88 | 88 | * @param string $command |
89 | - * @return boolean |
|
89 | + * @return integer |
|
90 | 90 | */ |
91 | 91 | function isLikely($command) { |
92 | 92 | return preg_match(JarvisLanguage::translate('preg_match_activate_plugin',get_called_class()), $command); |
@@ -8,6 +8,9 @@ |
||
8 | 8 | */ |
9 | 9 | class GenericCurl { |
10 | 10 | |
11 | + /** |
|
12 | + * @param string $url |
|
13 | + */ |
|
11 | 14 | static function exec($url, $fields) { |
12 | 15 | |
13 | 16 |
@@ -9,6 +9,9 @@ discard block |
||
9 | 9 | */ |
10 | 10 | class TelegramBotApiWrapper { |
11 | 11 | |
12 | + /** |
|
13 | + * @param resource $handle |
|
14 | + */ |
|
12 | 15 | function exec_curl_request($handle) { |
13 | 16 | $response = curl_exec($handle); |
14 | 17 | |
@@ -45,6 +48,9 @@ discard block |
||
45 | 48 | return $response; |
46 | 49 | } |
47 | 50 | |
51 | + /** |
|
52 | + * @param string $method |
|
53 | + */ |
|
48 | 54 | function apiRequestJson($method, $parameters) { |
49 | 55 | if (!is_string($method)) { |
50 | 56 | echo("Method name must be a string\n"); |