src/endobox/Box.php
private function find() : Box
    {
        // path compression
        if ($this->parent !== $this) {
            $this->parent = $this->parent->find();
        }
        return $this->parent;
    }
private function find() : Box
    {
        // path compression
        if ($this->parent !== $this) {
            $this->parent = $this->parent->find();
        }
        return $this->parent;
    }
private function find ( ) : Box { // path compression if ( $ this -> parent !== $ this ) { $ this -> parent = $ this -> parent -> find ( ) ; } return $ this -> parent ; }
Find with path compression.
Find with path compression .