| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | private function stripComments($str, $open, $close) { |
||
| 17 | $pos = 0; |
||
| 18 | while (($pos = strpos($str, $open, $pos)) !== false) { |
||
| 19 | $end = strpos($str, $close, $pos); |
||
| 20 | if ($end === false) break; |
||
| 21 | $str = substr_replace($str, '', $pos, $end-$pos+strlen($close)); |
||
| 22 | } |
||
| 23 | |||
| 24 | return $str; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |