original_string: public function mapErrorsToLogType($code)
      {
          switch ($code) {
              case E_ERROR:
              case E_RECOVERABLE_ERROR:
              case E_CORE_ERROR:
              case E_COMPILE_ERROR:
              case E_USER_ERROR:
              case E_PARSE:
                  return Logger::ERROR;
              case E_WARNING:
              case E_USER_WARNING:
              case E_CORE_WARNING:
              case E_COMPILE_WARNING:
                  return Logger::WARNING;
              case E_NOTICE:
              case E_USER_NOTICE:
                  return Logger::NOTICE;
              case E_STRICT:
              case E_DEPRECATED:
              case E_USER_DEPRECATED:
                  return Logger::INFO;
          }
  
          return Logger::ERROR;
      }
code: public function mapErrorsToLogType($code)
      {
          switch ($code) {
              case E_ERROR:
              case E_RECOVERABLE_ERROR:
              case E_CORE_ERROR:
              case E_COMPILE_ERROR:
              case E_USER_ERROR:
              case E_PARSE:
                  return Logger::ERROR;
              case E_WARNING:
              case E_USER_WARNING:
              case E_CORE_WARNING:
              case E_COMPILE_WARNING:
                  return Logger::WARNING;
              case E_NOTICE:
              case E_USER_NOTICE:
                  return Logger::NOTICE;
              case E_STRICT:
              case E_DEPRECATED:
              case E_USER_DEPRECATED:
                  return Logger::INFO;
          }
  
          return Logger::ERROR;
      }
code_tokens: public function mapErrorsToLogType ( $ code ) { switch ( $ code ) { case E_ERROR : case E_RECOVERABLE_ERROR : case E_CORE_ERROR : case E_COMPILE_ERROR : case E_USER_ERROR : case E_PARSE : return Logger :: ERROR ; case E_WARNING : case E_USER_WARNING : case E_CORE_WARNING : case E_COMPILE_WARNING : return Logger :: WARNING ; case E_NOTICE : case E_USER_NOTICE : return Logger :: NOTICE ; case E_STRICT : case E_DEPRECATED : case E_USER_DEPRECATED : return Logger :: INFO ; } return Logger :: ERROR ; }
docstring: Maps error code to a log type.
  @param  integer $code
  @return integer
docstring_tokens: Maps error code to a log type .