@@ -17,6 +17,9 @@ |
||
17 | 17 | } |
18 | 18 | } |
19 | 19 | |
20 | + /** |
|
21 | + * @param string $sentence |
|
22 | + */ |
|
20 | 23 | public function answer($sentence) { |
21 | 24 | foreach(JarvisBehaviourLanguage::$jbl_set->rules as $rule) { |
22 | 25 | foreach($rule->matches as $match) { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Is it the right plugin for the command? |
85 | 85 | * @param string $command |
86 | - * @return boolean |
|
86 | + * @return integer |
|
87 | 87 | */ |
88 | 88 | function isLikely($command) { |
89 | 89 | return preg_match(JarvisLanguage::translate('preg_match_activate_plugin',get_called_class()), $command); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | /** |
101 | 101 | * Returns an authorized API client. |
102 | - * @return Google_Client the authorized client object |
|
102 | + * @return null|\Google_Client the authorized client object |
|
103 | 103 | */ |
104 | 104 | function getClient() { |
105 | 105 | $client = new \Google_Client(); |
@@ -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"); |
@@ -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); |
@@ -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); |
@@ -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); |
@@ -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); |