Total Complexity | 8 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
6 | class StringUtil |
||
7 | { |
||
8 | /** |
||
9 | * Determine if a given string starts with a given substring. |
||
10 | * |
||
11 | * @param string $haystack |
||
12 | * @param string|string[] $needles |
||
13 | * @return bool |
||
14 | */ |
||
15 | public static function startsWith($haystack, $needles) |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Determine if a given string ends with a given substring. |
||
28 | * |
||
29 | * @param string $haystack |
||
30 | * @param string|string[] $needles |
||
31 | * @return bool |
||
32 | */ |
||
33 | public static function endsWith($haystack, $needles) |
||
44 |