src/Service/Cdn.php
public function sanitiseExtension($sExt)
    {
        $sExt = trim(strtolower($sExt));
        $sExt = preg_replace('/^\./', '', $sExt);

        switch ($sExt) {
            case 'jpeg':
                $sExt = 'jpg';
                break;
        }

        return $sExt;
    }
public function sanitiseExtension($sExt)
    {
        $sExt = trim(strtolower($sExt));
        $sExt = preg_replace('/^\./', '', $sExt);

        switch ($sExt) {
            case 'jpeg':
                $sExt = 'jpg';
                break;
        }

        return $sExt;
    }
public function sanitiseExtension ( $ sExt ) { $ sExt = trim ( strtolower ( $ sExt ) ) ; $ sExt = preg_replace ( '/^\./' , '' , $ sExt ) ; switch ( $ sExt ) { case 'jpeg' : $ sExt = 'jpg' ; break ; } return $ sExt ; }
Maps variants of an extension to a definitive one, for consistency. Can be
overloaded by the developer to satisfy any preferences with regards file
extensions

@param string $sExt The extension to map

@return string
Maps variants of an extension to a definitive one for consistency . Can be overloaded by the developer to satisfy any preferences with regards file extensions