| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public static function compile(Compiler $compiler, $value, $search, $replace, $case_sensitive = true) |
||
|
|
|||
| 45 | { |
||
| 46 | if ($case_sensitive == 'false' || (bool)$case_sensitive === false) { |
||
| 47 | return 'str_ireplace(' . $search . ', ' . $replace . ', ' . $value . ')'; |
||
| 48 | } else { |
||
| 49 | return 'str_replace(' . $search . ', ' . $replace . ', ' . $value . ')'; |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.