@@ -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) { |
@@ -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); |
@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * Is it the right plugin for the command? |
70 | 70 | * @param string $command |
71 | - * @return boolean |
|
71 | + * @return integer |
|
72 | 72 | */ |
73 | 73 | function isLikely($command) { |
74 | 74 | return preg_match(JarvisLanguage::translate('preg_match_activate_plugin',get_called_class()), $command); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | /** |
49 | 49 | * Is it the right plugin for the command? |
50 | 50 | * @param string $command |
51 | - * @return boolean |
|
51 | + * @return integer |
|
52 | 52 | */ |
53 | 53 | function isLikely($command) { |
54 | 54 | return preg_match(JarvisLanguage::translate('preg_match_activate_plugin',get_called_class()), $command); |
@@ -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(); |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Is it the right plugin for the command? |
58 | 58 | * @param string $command |
59 | - * @return boolean |
|
59 | + * @return integer |
|
60 | 60 | */ |
61 | 61 | function isLikely($command) { |
62 | 62 | return preg_match(JarvisLanguage::translate('preg_match_activate_plugin',get_called_class()), $command); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | /** |
52 | 52 | * Is it the right plugin for the command? |
53 | 53 | * @param string $command |
54 | - * @return boolean |
|
54 | + * @return integer |
|
55 | 55 | */ |
56 | 56 | function isLikely($command) { |
57 | 57 | return preg_match(JarvisLanguage::translate('preg_match_activate_plugin',get_called_class()), $command); |
@@ -57,7 +57,7 @@ |
||
57 | 57 | /** |
58 | 58 | * Is it the right plugin for the command? |
59 | 59 | * @param string $command |
60 | - * @return boolean |
|
60 | + * @return integer |
|
61 | 61 | */ |
62 | 62 | function isLikely($command) { |
63 | 63 | return preg_match(JarvisLanguage::translate('preg_match_activate_plugin',get_called_class()), $command); |
@@ -69,7 +69,7 @@ |
||
69 | 69 | /** |
70 | 70 | * Is it the right plugin for the command? |
71 | 71 | * @param string $command |
72 | - * @return boolean |
|
72 | + * @return integer |
|
73 | 73 | */ |
74 | 74 | function isLikely($command) { |
75 | 75 | return preg_match(JarvisLanguage::translate('preg_match_activate_plugin',get_called_class()), $command); |