private static function checkFormat(&$format)
    {
        $format = strtolower($format);

        if ( ! in_array($format, static::$supportedFormat)) {
            throw InvalidProfileFormatException::make($format, static::$supportedFormat);
        }
    }
private static function checkFormat(&$format)
    {
        $format = strtolower($format);

        if ( ! in_array($format, static::$supportedFormat)) {
            throw InvalidProfileFormatException::make($format, static::$supportedFormat);
        }
    }
private static function checkFormat ( & $ format ) { $ format = strtolower ( $ format ) ; if ( ! in_array ( $ format , static :: $ supportedFormat ) ) { throw InvalidProfileFormatException :: make ( $ format , static :: $ supportedFormat ) ; } }
Check the format.

@param  string  $format
Check the format .