Skip to content

Commit b51917b

Browse files
committed
Minor docblock fixes caught by Scrutinizer.
1 parent 597fcd2 commit b51917b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/ConversationDB.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public static function initializeConversation()
2929
/**
3030
* Select a conversation from the DB
3131
*
32-
* @param string $user_id
33-
* @param string $chat_id
34-
* @param bool $limit
32+
* @param string $user_id
33+
* @param string $chat_id
34+
* @param int|null $limit
3535
*
3636
* @return array|bool
3737
* @throws TelegramException

src/Entities/Message.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @method Sticker getSticker() Optional. Message is a sticker, information about the sticker
3333
* @method Video getVideo() Optional. Message is a video, information about the video
3434
* @method Voice getVoice() Optional. Message is a voice message, information about the file
35-
* @method Video Note getVideoNote() Optional. Message is a video note message, information about the video
35+
* @method VideoNote getVideoNote() Optional. Message is a video note message, information about the video
3636
* @method string getCaption() Optional. Caption for the document, photo or video, 0-200 characters
3737
* @method Contact getContact() Optional. Message is a shared contact, information about the contact
3838
* @method Location getLocation() Optional. Message is a shared location, information about the location
@@ -173,7 +173,7 @@ public function getFullCommand()
173173
/**
174174
* Get command
175175
*
176-
* @return bool|string
176+
* @return string|null
177177
*/
178178
public function getCommand()
179179
{
@@ -199,7 +199,7 @@ public function getCommand()
199199
return $split_cmd[0];
200200
}
201201

202-
return false;
202+
return null;
203203
}
204204

205205
/**

src/Request.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class Request
110110
/**
111111
* Request limiter's interval between checks
112112
*
113-
* @var boolean
113+
* @var float
114114
*/
115115
private static $limiter_interval;
116116

@@ -598,12 +598,12 @@ public static function sendToActiveChats(
598598
/**
599599
* Enable request limiter
600600
*
601-
* @param boolean $value
601+
* @param boolean $enable
602602
* @param array $options
603603
*
604604
* @throws \Longman\TelegramBot\Exception\TelegramException
605605
*/
606-
public static function setLimiter($value = true, array $options = [])
606+
public static function setLimiter($enable = true, array $options = [])
607607
{
608608
if (DB::isDbConnected()) {
609609
$options_default = [
@@ -617,7 +617,7 @@ public static function setLimiter($value = true, array $options = [])
617617
}
618618

619619
self::$limiter_interval = $options['interval'];
620-
self::$limiter_enabled = $value;
620+
self::$limiter_enabled = $enable;
621621
}
622622
}
623623

0 commit comments

Comments
 (0)