lib/Request.php
public function getContentType()
    {
        $contentType = null;
        $_contentType = $this->getHeader('Content-Type');
        if (!empty($_contentType)) {
            $_contentType = explode(';', $_contentType[0]);
            $contentType = $_contentType[0];
        }

        return $contentType;
    }
public function getContentType()
    {
        $contentType = null;
        $_contentType = $this->getHeader('Content-Type');
        if (!empty($_contentType)) {
            $_contentType = explode(';', $_contentType[0]);
            $contentType = $_contentType[0];
        }

        return $contentType;
    }
public function getContentType ( ) { $ contentType = null ; $ _contentType = $ this -> getHeader ( 'Content-Type' ) ; if ( ! empty ( $ _contentType ) ) { $ _contentType = explode ( ';' , $ _contentType [ 0 ] ) ; $ contentType = $ _contentType [ 0 ] ; } return $ contentType ; }
Get primary content-type header without encoding info

@return string|null
Get primary content - type header without encoding info