Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9101 | 29 | public static function strcmp(string $str1, string $str2): int |
|
9102 | { |
||
9103 | 29 | if ($str1 === $str2) { |
|
9104 | 21 | return 0; |
|
9105 | } |
||
9106 | |||
9107 | 24 | return \strcmp( |
|
9108 | /** @phpstan-ignore-next-line - we use only NFD */ |
||
9109 | 24 | \Normalizer::normalize($str1, \Normalizer::NFD), |
|
9110 | /** @phpstan-ignore-next-line - we use only NFD */ |
||
9111 | 24 | \Normalizer::normalize($str2, \Normalizer::NFD) |
|
9112 | ); |
||
13689 |