public function shouldMoveToRoot()
    {
        $config = $this->getConfig();

        if (isset($config['move_to_root']) && $config['move_to_root'] === true) {
            return true;
        }

        return $this->getDocumentRoot() === 'public' && !is_dir($this->getRoot() . '/public');
    }
public function shouldMoveToRoot()
    {
        $config = $this->getConfig();

        if (isset($config['move_to_root']) && $config['move_to_root'] === true) {
            return true;
        }

        return $this->getDocumentRoot() === 'public' && !is_dir($this->getRoot() . '/public');
    }
public function shouldMoveToRoot ( ) { $ config = $ this -> getConfig ( ) ; if ( isset ( $ config [ 'move_to_root' ] ) && $ config [ 'move_to_root' ] === true ) { return true ; } return $ this -> getDocumentRoot ( ) === 'public' && ! is_dir ( $ this -> getRoot ( ) . '/public' ) ; }
Check whether the whole app should be moved into the document root.

@return string
Check whether the whole app should be moved into the document root .