src/Phlexible/Component/MediaCache/Storage/AbstractStorage.php
protected function replaceExtension($filename, $ext)
    {
        $ext = str_replace('.', '', $ext);
        $filename = $this->removeExtension($filename);

        return $filename.'.'.$ext;
    }
protected function replaceExtension($filename, $ext)
    {
        $ext = str_replace('.', '', $ext);
        $filename = $this->removeExtension($filename);

        return $filename.'.'.$ext;
    }
protected function replaceExtension ( $ filename , $ ext ) { $ ext = str_replace ( '.' , '' , $ ext ) ; $ filename = $ this -> removeExtension ( $ filename ) ; return $ filename . '.' . $ ext ; }
Remove a filename extension.

@param string $filename
@param string $ext

@return string
Remove a filename extension .