Nathanmac\Utilities\Parser\Parser::processContentType PHP Method

processContentType() private method

Process the content-type values
private processContentType ( string $contentType ) : boolean | string
$contentType string Content-Type raw string
return boolean | string
    private function processContentType($contentType)
    {
        foreach (explode(';', $contentType) as $type) {
            $type = strtolower(trim($type));
            if (isset($this->supported_formats[$type])) {
                return $this->supported_formats[$type];
            }
        }
        return false;
    }