| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 30 | public function process(Text $opener, Text $closer, int $delimiterUse) |
|
| 42 | { |
||
| 43 | 30 | $strikethrough = new Strikethrough(); |
|
| 44 | |||
| 45 | 30 | $tmp = $opener->next(); |
|
| 46 | 30 | while ($tmp !== null && $tmp !== $closer) { |
|
| 47 | 30 | $next = $tmp->next(); |
|
| 48 | 30 | $strikethrough->appendChild($tmp); |
|
| 49 | 30 | $tmp = $next; |
|
| 50 | } |
||
| 51 | |||
| 52 | 30 | $opener->insertAfter($strikethrough); |
|
| 53 | 30 | } |
|
| 54 | } |
||
| 55 |