src/Reporter/Coverage/Collector.php
public function parse($file)
    {
        if (isset($this->_tree[$file])) {
            return $this->_tree[$file];
        }
        $parser = $this->_classes['parser'];
        return $this->_tree[$file] = $parser::parse(file_get_contents($file), ['lines' => true]);
    }
public function parse($file)
    {
        if (isset($this->_tree[$file])) {
            return $this->_tree[$file];
        }
        $parser = $this->_classes['parser'];
        return $this->_tree[$file] = $parser::parse(file_get_contents($file), ['lines' => true]);
    }
public function parse ( $ file ) { if ( isset ( $ this -> _tree [ $ file ] ) ) { return $ this -> _tree [ $ file ] ; } $ parser = $ this -> _classes [ 'parser' ] ; return $ this -> _tree [ $ file ] = $ parser :: parse ( file_get_contents ( $ file ) , [ 'lines' => true ] ) ; }
Retruns & cache the tree structure of a file.

@param string $file the file path to use for building the tree structure.
Retruns & cache the tree structure of a file .