Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5308 | public static function replace_all( |
||
5309 | string $str, |
||
5310 | array $search, |
||
5311 | $replacement, |
||
5312 | bool $case_sensitive = true |
||
5313 | ): string { |
||
5314 | 30 | if ($case_sensitive) { |
|
5315 | 23 | return \str_replace($search, $replacement, $str); |
|
5316 | } |
||
5317 | |||
5318 | 7 | return self::str_ireplace($search, $replacement, $str); |
|
5319 | } |
||
13723 |