public static function combine($part1, $part2)
    {
        if ($part1 && $part2) {
            return sprintf("%s/%s", rtrim($part1, '/'), ltrim($part2, '/'));
        }

        throw new InvalidArgumentException("All parts must be filled");
    }
public static function combine($part1, $part2)
    {
        if ($part1 && $part2) {
            return sprintf("%s/%s", rtrim($part1, '/'), ltrim($part2, '/'));
        }

        throw new InvalidArgumentException("All parts must be filled");
    }
public static function combine ( $ part1 , $ part2 ) { if ( $ part1 && $ part2 ) { return sprintf ( "%s/%s" , rtrim ( $ part1 , '/' ) , ltrim ( $ part2 , '/' ) ) ; } throw new InvalidArgumentException ( "All parts must be filled" ) ; }
Combine path parts.

@param string $part1
@param string $part2

@return string
@throws InvalidArgumentException
Combine path parts .