original_string: public function get_root_path($repository){
      if ( \is_string($repository) ){
        $repository = $this->repository($repository);
      }
      if ( !empty($repository) && !empty($repository['bbn_path']) ){
        $repository_path = !empty($repository['path']) ? '/' . $repository['path'] : '';
        $path = self::decipher_path($repository['bbn_path'] . $repository_path) . '/';
        return \bbn\str::parse_path($path);
      }
      return false;
    }
code: public function get_root_path($repository){
      if ( \is_string($repository) ){
        $repository = $this->repository($repository);
      }
      if ( !empty($repository) && !empty($repository['bbn_path']) ){
        $repository_path = !empty($repository['path']) ? '/' . $repository['path'] : '';
        $path = self::decipher_path($repository['bbn_path'] . $repository_path) . '/';
        return \bbn\str::parse_path($path);
      }
      return false;
    }
code_tokens: public function get_root_path ( $ repository ) { if ( \ is_string ( $ repository ) ) { $ repository = $ this -> repository ( $ repository ) ; } if ( ! empty ( $ repository ) && ! empty ( $ repository [ 'bbn_path' ] ) ) { $ repository_path = ! empty ( $ repository [ 'path' ] ) ? '/' . $ repository [ 'path' ] : '' ; $ path = self :: decipher_path ( $ repository [ 'bbn_path' ] . $ repository_path ) . '/' ; return \ bbn \ str :: parse_path ( $ path ) ; } return false ; }
docstring: Gets the real root path from a repository's id as recorded in the options.
  
  @param string|array $repository The repository's name (code) or the repository's configuration
  @return bool|string
docstring_tokens: Gets the real root path from a repository s id as recorded in the options .