Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
44 | 33 | public function process(AbstractStringContainer $opener, AbstractStringContainer $closer, int $delimiterUse): void |
|
45 | { |
||
46 | 33 | $strikethrough = new Strikethrough(); |
|
47 | |||
48 | 33 | $tmp = $opener->next(); |
|
49 | 33 | while ($tmp !== null && $tmp !== $closer) { |
|
50 | 33 | $next = $tmp->next(); |
|
51 | 33 | $strikethrough->appendChild($tmp); |
|
52 | 33 | $tmp = $next; |
|
53 | } |
||
54 | |||
55 | 33 | $opener->insertAfter($strikethrough); |
|
56 | 33 | } |
|
58 |