@@ -193,7 +193,7 @@ |
||
193 | 193 | * @param bool $isCommand Boolean flag which indicates that passed entity should |
194 | 194 | * be treated as a command |
195 | 195 | * |
196 | - * @return bool |
|
196 | + * @return boolean|null |
|
197 | 197 | */ |
198 | 198 | protected function triggerEvent(AbstractEntity $entity, AbstractEntity $parent = null, $isCommand = false) |
199 | 199 | { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * @return mixed |
|
45 | + * @return string |
|
46 | 46 | */ |
47 | 47 | public function getName() |
48 | 48 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * @return mixed |
|
53 | + * @return string |
|
54 | 54 | */ |
55 | 55 | public function getArgs() |
56 | 56 | { |
@@ -76,6 +76,9 @@ discard block |
||
76 | 76 | return $command; |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $command |
|
81 | + */ |
|
79 | 82 | protected function getArgsFromText($command, $text) |
80 | 83 | { |
81 | 84 | $length = strlen(static::PREFIX . $command); |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * An example of how to run Teebot in webhook mode. |
|
4 | - * |
|
5 | - * @author Stan Drozdov <[email protected]> |
|
6 | - */ |
|
3 | + * An example of how to run Teebot in webhook mode. |
|
4 | + * |
|
5 | + * @author Stan Drozdov <[email protected]> |
|
6 | + */ |
|
7 | 7 | define('ROOT_DIR', realpath(__DIR__)); |
8 | 8 | require_once ROOT_DIR . '/vendor/autoload.php'; |
9 | 9 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Teebot console listener. Through this script Teebot will be started as demon and will continuously |
|
4 | - * request an updates from Telegram's servers. |
|
5 | - * |
|
6 | - * @author Stan Drozdov <[email protected]> |
|
7 | - */ |
|
3 | + * Teebot console listener. Through this script Teebot will be started as demon and will continuously |
|
4 | + * request an updates from Telegram's servers. |
|
5 | + * |
|
6 | + * @author Stan Drozdov <[email protected]> |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | define('ROOT_DIR', realpath(__DIR__)); |
10 | 10 | require_once ROOT_DIR . '/vendor/autoload.php'; |