AssetCompress\View\Helper\AssetCompressHelper::_addExt PHP Method

_addExt() protected method

Adds an extension if the file doesn't already end with it.
protected _addExt ( string $file, string $ext ) : string
$file string Filename
$ext string Extension with .
return string
    protected function _addExt($file, $ext)
    {
        if (substr($file, strlen($ext) * -1) !== $ext) {
            $file .= $ext;
        }
        return $file;
    }