src/Whoops/Util/TemplateHelper.php
public function shorten($path)
    {
        if ($this->applicationRootPath != "/") {
            $path = str_replace($this->applicationRootPath, '&hellip;', $path);
        }

        return $path;
    }
public function shorten($path)
    {
        if ($this->applicationRootPath != "/") {
            $path = str_replace($this->applicationRootPath, '&hellip;', $path);
        }

        return $path;
    }
public function shorten ( $ path ) { if ( $ this -> applicationRootPath != "/" ) { $ path = str_replace ( $ this -> applicationRootPath , '&hellip;' , $ path ) ; } return $ path ; }
Replace the part of the path that all files have in common.

@param  string $path
@return string
Replace the part of the path that all files have in common .