nextSibling; } /** @inheritDoc */ public function before( Element $node, Node $otherNode, SerializerState $state ): array { if ( WTUtils::isNewElt( $node ) && DOMUtils::atTheTop( $node->parentNode ) ) { return [ 'min' => 1 ]; } return []; } /** @inheritDoc */ public function after( Element $node, Node $otherNode, SerializerState $state ): array { if ( WTUtils::isNewElt( $node ) && DOMUtils::atTheTop( $node->parentNode ) ) { return [ 'min' => 1 ]; } return []; } }