| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | 30 | public function process(AbstractStringContainer $opener, AbstractStringContainer $closer, int $delimiterUse) |
|
| 58 | { |
||
| 59 | 30 | $strikethrough = new Strikethrough(); |
|
| 60 | |||
| 61 | 30 | $tmp = $opener->next(); |
|
| 62 | 30 | while ($tmp !== null && $tmp !== $closer) { |
|
| 63 | 30 | $next = $tmp->next(); |
|
| 64 | 30 | $strikethrough->appendChild($tmp); |
|
| 65 | 30 | $tmp = $next; |
|
| 66 | } |
||
| 67 | |||
| 68 | 30 | $opener->insertAfter($strikethrough); |
|
| 69 | 30 | } |
|
| 70 | } |
||
| 71 |