public function getContentTypeParams()
    {
        $contentType = $this->headers->first('Content-Type');
        $contentTypeParams = [];

        if ($contentType) {
            $contentTypeParts = preg_split('/\s*[;,]\s*/', $contentType);
            $contentTypePartsLength = count($contentTypeParts);
            for ($i = 1; $i < $contentTypePartsLength; $i++) {
                $paramParts = explode('=', $contentTypeParts[$i]);
                $contentTypeParams[strtolower($paramParts[0])] = $paramParts[1];
            }
        }

        return $contentTypeParams;
    }
public function getContentTypeParams()
    {
        $contentType = $this->headers->first('Content-Type');
        $contentTypeParams = [];

        if ($contentType) {
            $contentTypeParts = preg_split('/\s*[;,]\s*/', $contentType);
            $contentTypePartsLength = count($contentTypeParts);
            for ($i = 1; $i < $contentTypePartsLength; $i++) {
                $paramParts = explode('=', $contentTypeParts[$i]);
                $contentTypeParams[strtolower($paramParts[0])] = $paramParts[1];
            }
        }

        return $contentTypeParams;
    }
public function getContentTypeParams ( ) { $ contentType = $ this -> headers -> first ( 'Content-Type' ) ; $ contentTypeParams = [ ] ; if ( $ contentType ) { $ contentTypeParts = preg_split ( '/\s*[;,]\s*/' , $ contentType ) ; $ contentTypePartsLength = count ( $ contentTypeParts ) ; for ( $ i = 1 ; $ i < $ contentTypePartsLength ; $ i ++ ) { $ paramParts = explode ( '=' , $ contentTypeParts [ $ i ] ) ; $ contentTypeParams [ strtolower ( $ paramParts [ 0 ] ) ] = $ paramParts [ 1 ] ; } } return $ contentTypeParams ; }
Returns parameters of the Content-Type header.

@return array
Returns parameters of the Content - Type header .