public static function strlen($string)
{
if (false === $encoding = mb_detect_encoding($string, null, true)) {
- return strlen($string);
+ return \strlen($string);
}
return mb_strwidth($string, $encoding);
foreach ($timeFormats as $index => $format) {
if ($secs >= $format[0]) {
if ((isset($timeFormats[$index + 1]) && $secs < $timeFormats[$index + 1][0])
- || $index == count($timeFormats) - 1
+ || $index == \count($timeFormats) - 1
) {
- if (2 == count($format)) {
+ if (2 == \count($format)) {
return $format[1];
}