private function makePathRelative (string $path) : string
    {
        return ($this->projectDir === substr($path, 0, strlen($this->projectDir)))
            ? substr($path, strlen($this->projectDir) + 1)
            : $path;
    }
private function makePathRelative (string $path) : string
    {
        return ($this->projectDir === substr($path, 0, strlen($this->projectDir)))
            ? substr($path, strlen($this->projectDir) + 1)
            : $path;
    }
private function makePathRelative ( string $ path ) : string { return ( $ this -> projectDir === substr ( $ path , 0 , strlen ( $ this -> projectDir ) ) ) ? substr ( $ path , strlen ( $ this -> projectDir ) + 1 ) : $ path ; }
Makes the path relative to the project dir

@param string $path
@return string
Makes the path relative to the project dir