concrete/src/File/Image/BitmapFormat.php
protected function normalizeFormat($format)
    {
        $format = strtolower(trim((string) $format));
        if ($format === 'jpg') {
            $format = static::FORMAT_JPEG;
        }

        return $format;
    }
protected function normalizeFormat($format)
    {
        $format = strtolower(trim((string) $format));
        if ($format === 'jpg') {
            $format = static::FORMAT_JPEG;
        }

        return $format;
    }
protected function normalizeFormat ( $ format ) { $ format = strtolower ( trim ( ( string ) $ format ) ) ; if ( $ format === 'jpg' ) { $ format = static :: FORMAT_JPEG ; } return $ format ; }
Normalize a format.

@param string|mixed $format

@return string
Normalize a format .