Append a file extension to a path/file if there is no or an empty extension provided, this
helper methods is used to make sure the right extension existing on files.
public static ensureExtension ( string $file, string $extension ) : the | ||
$file | string | The file where extension should be append if not existing |
$extension | string | |
return | the | ensured file/path with extension |