src/Helpers/Paths.php
protected static function appendToPath($path, $file)
    {
        if (empty($file)) return $path;

        return rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $file;
    }
protected static function appendToPath($path, $file)
    {
        if (empty($file)) return $path;

        return rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $file;
    }
protected static function appendToPath ( $ path , $ file ) { if ( empty ( $ file ) ) return $ path ; return rtrim ( $ path , DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR . $ file ; }
Append a subpath or file to a path

@param string $path
@param string $file
@return string
Append a subpath or file to a path