| Total Complexity | 8 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class StringHelper |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param mixed $context |
||
| 11 | */ |
||
| 12 | public static function getContextAsString($context): string |
||
| 13 | { |
||
| 14 | \ob_start(); |
||
| 15 | \var_dump($context); |
||
|
|
|||
| 16 | return (string) \ob_get_clean(); |
||
| 17 | } |
||
| 18 | |||
| 19 | public static function isEmpty(string $string): bool |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function linkify(string $string): string |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | |||
| 37 | public static function startsWith(string $haystack, string $needle, bool $ignoreCase = true): bool |
||
| 50 | } |
||
| 51 | } |
||
| 52 |