@@ -4,6 +4,9 @@ |
||
4 | 4 | |
5 | 5 | trait Chat { |
6 | 6 | |
7 | + /** |
|
8 | + * @param string $url |
|
9 | + */ |
|
7 | 10 | abstract protected function exec_curl_request($url, $method); |
8 | 11 | |
9 | 12 | /** |
@@ -4,6 +4,9 @@ |
||
4 | 4 | |
5 | 5 | trait Edit { |
6 | 6 | |
7 | + /** |
|
8 | + * @param string $url |
|
9 | + */ |
|
7 | 10 | abstract protected function exec_curl_request($url, $method); |
8 | 11 | |
9 | 12 | /** |
@@ -4,6 +4,9 @@ |
||
4 | 4 | |
5 | 5 | trait Inline { |
6 | 6 | |
7 | + /** |
|
8 | + * @param string $url |
|
9 | + */ |
|
7 | 10 | abstract protected function exec_curl_request($url, $method); |
8 | 11 | |
9 | 12 | /** |
@@ -4,6 +4,9 @@ discard block |
||
4 | 4 | |
5 | 5 | trait Send { |
6 | 6 | |
7 | + /** |
|
8 | + * @param string $url |
|
9 | + */ |
|
7 | 10 | abstract protected function exec_curl_request($url, $method); |
8 | 11 | |
9 | 12 | /** |
@@ -200,7 +203,7 @@ discard block |
||
200 | 203 | * - <code>record_audio</code> or <code>upload_audio</code> for audio files |
201 | 204 | * - <code>upload_document</code> for general files |
202 | 205 | * - <code>find_location</code> for location data |
203 | - * @return True on success. |
|
206 | + * @return boolean on success. |
|
204 | 207 | */ |
205 | 208 | public function sendChatAction(string $action) : bool { |
206 | 209 |
@@ -4,6 +4,9 @@ |
||
4 | 4 | |
5 | 5 | trait Updates { |
6 | 6 | |
7 | + /** |
|
8 | + * @param string $url |
|
9 | + */ |
|
7 | 10 | abstract protected function exec_curl_request($url, $method); |
8 | 11 | |
9 | 12 | /** |
@@ -81,7 +81,7 @@ |
||
81 | 81 | |
82 | 82 | // Exec getUpdates |
83 | 83 | $this->exec_curl_request('getUpdates?' . http_build_query($parameters) |
84 | - . '&allowed_updates=' . json_encode($allowed_updates)); |
|
84 | + . '&allowed_updates=' . json_encode($allowed_updates)); |
|
85 | 85 | |
86 | 86 | } |
87 | 87 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * \brief (<i>Internal</i>)Get first update offset in redis. |
24 | 24 | * \details Called by getUpdatesRedis to get the offset saved in redis or to get it from telegram and save it in redis. |
25 | 25 | * @param $offset_key Name of the variable where the offset is saved on Redis |
26 | - * @return Id of the first update to process. |
|
26 | + * @return integer of the first update to process. |
|
27 | 27 | */ |
28 | 28 | protected function getUpdateOffsetRedis(string $offset_key) : int { |
29 | 29 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * \brief Load a localization file into the localized strings array. |
34 | 34 | * @param $lang Language to load. |
35 | 35 | * @param $dir Directory in which there are the JSON files. |
36 | - * @return True if loaded. False if already loaded. |
|
36 | + * @return boolean if loaded. False if already loaded. |
|
37 | 37 | */ |
38 | 38 | protected function loadSingleLanguage(string $lang = 'en', $dir = './localization') : bool { |
39 | 39 |