src/Reporter/Coverage/Collector.php
public function realpath($file)
    {
        $prefix = preg_quote($this->_prefix, '~');
        $file = preg_replace("~^{$prefix}~", '', $file);
        if (!$this->_hasVolume) {
            return $file;
        }
        if (preg_match('~^[A-Z]+:~', $file)) {
            return $file;
        }
        $file = ltrim($file, DS);
        $pos = strpos($file, DS);
        if ($pos !== false) {
            $file = substr_replace($file, ':' . DS, $pos, 1);
        }
        return $file;
    }
public function realpath($file)
    {
        $prefix = preg_quote($this->_prefix, '~');
        $file = preg_replace("~^{$prefix}~", '', $file);
        if (!$this->_hasVolume) {
            return $file;
        }
        if (preg_match('~^[A-Z]+:~', $file)) {
            return $file;
        }
        $file = ltrim($file, DS);
        $pos = strpos($file, DS);
        if ($pos !== false) {
            $file = substr_replace($file, ':' . DS, $pos, 1);
        }
        return $file;
    }
public function realpath ( $ file ) { $ prefix = preg_quote ( $ this -> _prefix , '~' ) ; $ file = preg_replace ( "~^{$prefix}~" , '' , $ file ) ; if ( ! $ this -> _hasVolume ) { return $ file ; } if ( preg_match ( '~^[A-Z]+:~' , $ file ) ) { return $ file ; } $ file = ltrim ( $ file , DS ) ; $ pos = strpos ( $ file , DS ) ; if ( $ pos !== false ) { $ file = substr_replace ( $ file , ':' . DS , $ pos , 1 ) ; } return $ file ; }
Gets the real path in the original src directory.

@param  string $file A file path or cached file path.
@return string       The original file path.
Gets the real path in the original src directory .