Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2018-03-03 16:56:23 +00:00 committed by StyleCI Bot
parent ed68ae9549
commit 0994ef99bd

View File

@ -19,7 +19,9 @@ trait BotAPI
{ {
return html_entity_decode(preg_replace('#< *br */? *>#', "\n", $stuff)); return html_entity_decode(preg_replace('#< *br */? *>#', "\n", $stuff));
} }
public function mb_strlen($text) {
public function mb_strlen($text)
{
$length = 0; $length = 0;
foreach (str_split($text) as $char) { foreach (str_split($text) as $char) {
$char = ord($char); $char = ord($char);
@ -27,8 +29,10 @@ trait BotAPI
$length += 1 + ($char >= 0xf0); $length += 1 + ($char >= 0xf0);
} }
} }
return $length; return $length;
} }
public function parse_buttons($rows) public function parse_buttons($rows)
{ {
$newrows = []; $newrows = [];