| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 14 | public function __construct(?TagNode $parent, string $s, ?Node $like) |
|
| 24 | { |
||
| 25 | 14 | parent::__construct($parent, $s); |
|
| 26 | |||
| 27 | 14 | if ($like instanceof TextNode) { |
|
| 28 | 14 | $newModification = clone $like->getModification(); |
|
| 29 | 14 | $newModification->setFirstOfId(false); |
|
| 30 | 14 | $this->setModification($newModification); |
|
| 31 | } |
||
| 51 |