Minor docblock fixes caught by Scrutinizer.

parent 597fcd2f
...@@ -29,9 +29,9 @@ class ConversationDB extends DB ...@@ -29,9 +29,9 @@ class ConversationDB extends DB
/** /**
* Select a conversation from the DB * Select a conversation from the DB
* *
* @param string $user_id * @param string $user_id
* @param string $chat_id * @param string $chat_id
* @param bool $limit * @param int|null $limit
* *
* @return array|bool * @return array|bool
* @throws TelegramException * @throws TelegramException
......
...@@ -32,7 +32,7 @@ namespace Longman\TelegramBot\Entities; ...@@ -32,7 +32,7 @@ namespace Longman\TelegramBot\Entities;
* @method Sticker getSticker() Optional. Message is a sticker, information about the sticker * @method Sticker getSticker() Optional. Message is a sticker, information about the sticker
* @method Video getVideo() Optional. Message is a video, information about the video * @method Video getVideo() Optional. Message is a video, information about the video
* @method Voice getVoice() Optional. Message is a voice message, information about the file * @method Voice getVoice() Optional. Message is a voice message, information about the file
* @method Video Note getVideoNote() Optional. Message is a video note message, information about the video * @method VideoNote getVideoNote() Optional. Message is a video note message, information about the video
* @method string getCaption() Optional. Caption for the document, photo or video, 0-200 characters * @method string getCaption() Optional. Caption for the document, photo or video, 0-200 characters
* @method Contact getContact() Optional. Message is a shared contact, information about the contact * @method Contact getContact() Optional. Message is a shared contact, information about the contact
* @method Location getLocation() Optional. Message is a shared location, information about the location * @method Location getLocation() Optional. Message is a shared location, information about the location
...@@ -173,7 +173,7 @@ class Message extends Entity ...@@ -173,7 +173,7 @@ class Message extends Entity
/** /**
* Get command * Get command
* *
* @return bool|string * @return string|null
*/ */
public function getCommand() public function getCommand()
{ {
...@@ -199,7 +199,7 @@ class Message extends Entity ...@@ -199,7 +199,7 @@ class Message extends Entity
return $split_cmd[0]; return $split_cmd[0];
} }
return false; return null;
} }
/** /**
......
...@@ -110,7 +110,7 @@ class Request ...@@ -110,7 +110,7 @@ class Request
/** /**
* Request limiter's interval between checks * Request limiter's interval between checks
* *
* @var boolean * @var float
*/ */
private static $limiter_interval; private static $limiter_interval;
...@@ -598,12 +598,12 @@ class Request ...@@ -598,12 +598,12 @@ class Request
/** /**
* Enable request limiter * Enable request limiter
* *
* @param boolean $value * @param boolean $enable
* @param array $options * @param array $options
* *
* @throws \Longman\TelegramBot\Exception\TelegramException * @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public static function setLimiter($value = true, array $options = []) public static function setLimiter($enable = true, array $options = [])
{ {
if (DB::isDbConnected()) { if (DB::isDbConnected()) {
$options_default = [ $options_default = [
...@@ -617,7 +617,7 @@ class Request ...@@ -617,7 +617,7 @@ class Request
} }
self::$limiter_interval = $options['interval']; self::$limiter_interval = $options['interval'];
self::$limiter_enabled = $value; self::$limiter_enabled = $enable;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment