Conditions | 4 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 3 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
10536 | public static function strpbrk(string $haystack, string $char_list) |
||
10537 | { |
||
10538 | if ($haystack === '' || $char_list === '') { |
||
10539 | return false; |
||
10540 | } |
||
10541 | |||
10542 | if (\preg_match('/' . self::rxClass($char_list) . '/us', $haystack, $m)) { |
||
10543 | return \substr($haystack, (int) \strpos($haystack, $m[0])); |
||
10544 | } |
||
10545 | |||
10546 | return false; |
||
10547 | } |
||
14796 |