src/Util/AntPathMatcher.php
protected function concat($path1, $path2)
    {
        if (substr($path1, -1) == $this->pathSeparator || substr($path2, 0, 1) == $this->pathSeparator) {
            return $path1 . $path2;
        }
        return $path1 . $this->pathSeparator . $path2;
    }
protected function concat($path1, $path2)
    {
        if (substr($path1, -1) == $this->pathSeparator || substr($path2, 0, 1) == $this->pathSeparator) {
            return $path1 . $path2;
        }
        return $path1 . $this->pathSeparator . $path2;
    }
protected function concat ( $ path1 , $ path2 ) { if ( substr ( $ path1 , - 1 ) == $ this -> pathSeparator || substr ( $ path2 , 0 , 1 ) == $ this -> pathSeparator ) { return $ path1 . $ path2 ; } return $ path1 . $ this -> pathSeparator . $ path2 ; }
Concats two paths using the path separator
@param string $path1 The first path
@param string $path2 The second path
@return string
Concats two paths using the path separator