original_string: public function getContentType($short = true)
      {
          if (isset($_SERVER['CONTENT_TYPE'])) {
              $content_type = $_SERVER['CONTENT_TYPE'];
              if ($short) {
                  return Utils::substrToString($content_type,';');
              }
              return $content_type;
          }
          return null;
      }
code: public function getContentType($short = true)
      {
          if (isset($_SERVER['CONTENT_TYPE'])) {
              $content_type = $_SERVER['CONTENT_TYPE'];
              if ($short) {
                  return Utils::substrToString($content_type,';');
              }
              return $content_type;
          }
          return null;
      }
code_tokens: public function getContentType ( $ short = true ) { if ( isset ( $ _SERVER [ 'CONTENT_TYPE' ] ) ) { $ content_type = $ _SERVER [ 'CONTENT_TYPE' ] ; if ( $ short ) { return Utils :: substrToString ( $ content_type , ';' ) ; } return $ content_type ; } return null ; }
docstring: Get content type from request
  
  @param bool $short
  @return null|string
docstring_tokens: Get content type from request