public function apply()
    {
        if ($this->canApply()) {
            $subject = $this->getSubject();
            $parent = $subject->getParent();
            $node = $this->createNode($parent);

            $node->moveAfter($subject);
            $this->updateWorkspaceInfo();
        }
    }
public function apply()
    {
        if ($this->canApply()) {
            $subject = $this->getSubject();
            $parent = $subject->getParent();
            $node = $this->createNode($parent);

            $node->moveAfter($subject);
            $this->updateWorkspaceInfo();
        }
    }
public function apply ( ) { if ( $ this -> canApply ( ) ) { $ subject = $ this -> getSubject ( ) ; $ parent = $ subject -> getParent ( ) ; $ node = $ this -> createNode ( $ parent ) ; $ node -> moveAfter ( $ subject ) ; $ this -> updateWorkspaceInfo ( ) ; } }
Create a new node after the subject

@return void
Create a new node after the subject