Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5279 | 30 | public static function replace_all( |
|
5280 | string $str, |
||
5281 | array $search, |
||
5282 | $replacement, |
||
5283 | bool $case_sensitive = true |
||
5284 | ): string { |
||
5285 | 30 | if ($case_sensitive) { |
|
5286 | 23 | return \str_replace($search, $replacement, $str); |
|
5287 | } |
||
5288 | |||
5289 | 7 | return self::str_ireplace($search, $replacement, $str); |
|
5290 | } |
||
13694 |