| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Top extends AddStrategyAbstract |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | 2 | protected function canCreateNewNode(NodeInfo $targetNode): void |
|
| 19 | } |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | 1 | protected function makeHole(NodeInfo $targetNode): void |
|
| 26 | { |
||
| 27 | 1 | $moveFromIndex = $targetNode->getLeft() - 1; |
|
| 28 | 1 | $this->getManipulator()->moveLeftIndexes($moveFromIndex, 2, $targetNode->getScope()); |
|
| 29 | 1 | $this->getManipulator()->moveRightIndexes($moveFromIndex, 2, $targetNode->getScope()); |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | 1 | protected function createNewNodeNodeInfo(NodeInfo $targetNode): NodeInfo |
|
| 44 | ); |
||
| 45 | } |
||
| 47 |