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