original_string: public static function mapErrorCode($code)
      {
          $levelMap = [
              E_PARSE => 'error',
              E_ERROR => 'error',
              E_CORE_ERROR => 'error',
              E_COMPILE_ERROR => 'error',
              E_USER_ERROR => 'error',
              E_WARNING => 'warning',
              E_USER_WARNING => 'warning',
              E_COMPILE_WARNING => 'warning',
              E_RECOVERABLE_ERROR => 'warning',
              E_NOTICE => 'notice',
              E_USER_NOTICE => 'notice',
              E_STRICT => 'strict',
              E_DEPRECATED => 'deprecated',
              E_USER_DEPRECATED => 'deprecated',
          ];
          $logMap = [
              'error' => LOG_ERR,
              'warning' => LOG_WARNING,
              'notice' => LOG_NOTICE,
              'strict' => LOG_NOTICE,
              'deprecated' => LOG_NOTICE,
          ];
  
          $error = $levelMap[$code];
          $log = $logMap[$error];
  
          return [ucfirst($error), $log];
      }
code: public static function mapErrorCode($code)
      {
          $levelMap = [
              E_PARSE => 'error',
              E_ERROR => 'error',
              E_CORE_ERROR => 'error',
              E_COMPILE_ERROR => 'error',
              E_USER_ERROR => 'error',
              E_WARNING => 'warning',
              E_USER_WARNING => 'warning',
              E_COMPILE_WARNING => 'warning',
              E_RECOVERABLE_ERROR => 'warning',
              E_NOTICE => 'notice',
              E_USER_NOTICE => 'notice',
              E_STRICT => 'strict',
              E_DEPRECATED => 'deprecated',
              E_USER_DEPRECATED => 'deprecated',
          ];
          $logMap = [
              'error' => LOG_ERR,
              'warning' => LOG_WARNING,
              'notice' => LOG_NOTICE,
              'strict' => LOG_NOTICE,
              'deprecated' => LOG_NOTICE,
          ];
  
          $error = $levelMap[$code];
          $log = $logMap[$error];
  
          return [ucfirst($error), $log];
      }
code_tokens: public static function mapErrorCode ( $ code ) { $ levelMap = [ E_PARSE => 'error' , E_ERROR => 'error' , E_CORE_ERROR => 'error' , E_COMPILE_ERROR => 'error' , E_USER_ERROR => 'error' , E_WARNING => 'warning' , E_USER_WARNING => 'warning' , E_COMPILE_WARNING => 'warning' , E_RECOVERABLE_ERROR => 'warning' , E_NOTICE => 'notice' , E_USER_NOTICE => 'notice' , E_STRICT => 'strict' , E_DEPRECATED => 'deprecated' , E_USER_DEPRECATED => 'deprecated' , ] ; $ logMap = [ 'error' => LOG_ERR , 'warning' => LOG_WARNING , 'notice' => LOG_NOTICE , 'strict' => LOG_NOTICE , 'deprecated' => LOG_NOTICE , ] ; $ error = $ levelMap [ $ code ] ; $ log = $ logMap [ $ error ] ; return [ ucfirst ( $ error ) , $ log ] ; }
docstring: Map an error code into an Error word, and log location.
  
  @param int $code Error code to map
  @return array Array of error word, and log location.
docstring_tokens: Map an error code into an Error word and log location .