Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public static function compile(Compiler $compiler, $value, $addspace = true, $allowable_tags = null) |
||
|
|||
44 | { |
||
45 | if ($addspace === 'true') { |
||
46 | if ("null" == $allowable_tags) { |
||
47 | return "preg_replace('#<[^>]*>#', ' ', $value)"; |
||
48 | } |
||
49 | |||
50 | return "preg_replace('#<\\s*\\/?(" . $allowable_tags . ")\\s*[^>]*?>#im', ' ', $value)"; |
||
51 | } |
||
52 | |||
53 | return "strip_tags($value, $allowable_tags)"; |
||
54 | } |
||
55 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.