Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4.0466 |
Changes | 2 | ||
Bugs | 2 | Features | 1 |
1 | <?php |
||
4074 | 83 | public static function is_utf8($str, bool $strict = false): bool |
|
4075 | { |
||
4076 | 83 | if (\is_array($str)) { |
|
4077 | 2 | foreach ($str as &$v) { |
|
4078 | 2 | if (!self::is_utf8($v, $strict)) { |
|
4079 | 2 | return false; |
|
4080 | } |
||
4081 | } |
||
4082 | |||
4083 | return true; |
||
4084 | } |
||
4085 | |||
4086 | 83 | return self::is_utf8_string((string) $str, $strict); |
|
4087 | } |
||
13722 |