src/Http.php
public static function getContentType() {
    if(null === self::$contentType) {
      self::$contentType = @trim($_SERVER['HTTP_CONTENT_TYPE']);
      if(!self::$contentType) {
        self::$contentType = @trim($_SERVER['CONTENT_TYPE']);
        if(!self::$contentType) {
          self::$contentType = false;
        }
      }
    }
    return self::$contentType;
  }
public static function getContentType() {
    if(null === self::$contentType) {
      self::$contentType = @trim($_SERVER['HTTP_CONTENT_TYPE']);
      if(!self::$contentType) {
        self::$contentType = @trim($_SERVER['CONTENT_TYPE']);
        if(!self::$contentType) {
          self::$contentType = false;
        }
      }
    }
    return self::$contentType;
  }
public static function getContentType ( ) { if ( null === self :: $ contentType ) { self :: $ contentType = @ trim ( $ _SERVER [ 'HTTP_CONTENT_TYPE' ] ) ; if ( ! self :: $ contentType ) { self :: $ contentType = @ trim ( $ _SERVER [ 'CONTENT_TYPE' ] ) ; if ( ! self :: $ contentType ) { self :: $ contentType = false ; } } } return self :: $ contentType ; }
Returns the request's content type as supplied by remote user agent. If
none was detected, FALSE is returned.

@return string|FALSE detected content type, FALSE otherwise
Returns the request s content type as supplied by remote user agent . If none was detected FALSE is returned .