src/PublicSuffixList.php
protected function loadTree()
    {
        $this->setFallbackURL();

        $this->tree = $this->readCachedPSL($this->url);
        if (false !== $this->tree) {
            return;
        }

        $this->tree = array();
        $list = $this->readPSL();

        if (false===$list) {
            throw new \RuntimeException('Cannot read ' . $this->url);
        }

        $this->parsePSL($list);
        $this->cachePSL($this->url);
    }
protected function loadTree()
    {
        $this->setFallbackURL();

        $this->tree = $this->readCachedPSL($this->url);
        if (false !== $this->tree) {
            return;
        }

        $this->tree = array();
        $list = $this->readPSL();

        if (false===$list) {
            throw new \RuntimeException('Cannot read ' . $this->url);
        }

        $this->parsePSL($list);
        $this->cachePSL($this->url);
    }
protected function loadTree ( ) { $ this -> setFallbackURL ( ) ; $ this -> tree = $ this -> readCachedPSL ( $ this -> url ) ; if ( false !== $ this -> tree ) { return ; } $ this -> tree = array ( ) ; $ list = $ this -> readPSL ( ) ; if ( false === $ list ) { throw new \ RuntimeException ( 'Cannot read ' . $ this -> url ) ; } $ this -> parsePSL ( $ list ) ; $ this -> cachePSL ( $ this -> url ) ; }
load the PSL tree, automatically handling caches

@return void (results in $this->tree)

@throws \RuntimeException
load the PSL tree automatically handling caches