original_string: public function triggerError($errorCode, $errorMessage = '')
      {
          $callError = $errorCode;
  
          if (!isset($this->error[$errorCode]) || !is_callable($this->error[$errorCode])) {
              if (isset($this->error[0]) && is_callable($this->error[0])) {
                  $callError = 0;
              } else {
                  // Nothing set to handle this error!
                  return;
              }
          }
  
          // Error response function exists
          $this->match = true;
  
          //call_user_func_array($this->error[$errorCode], array($errorCode, $errorMessage));
          $this->error[$callError]($errorCode, $errorMessage);
          // Or use call_user_func_array ?
  
          exit($errorCode);
      }
code: public function triggerError($errorCode, $errorMessage = '')
      {
          $callError = $errorCode;
  
          if (!isset($this->error[$errorCode]) || !is_callable($this->error[$errorCode])) {
              if (isset($this->error[0]) && is_callable($this->error[0])) {
                  $callError = 0;
              } else {
                  // Nothing set to handle this error!
                  return;
              }
          }
  
          // Error response function exists
          $this->match = true;
  
          //call_user_func_array($this->error[$errorCode], array($errorCode, $errorMessage));
          $this->error[$callError]($errorCode, $errorMessage);
          // Or use call_user_func_array ?
  
          exit($errorCode);
      }
code_tokens: public function triggerError ( $ errorCode , $ errorMessage = '' ) { $ callError = $ errorCode ; if ( ! isset ( $ this -> error [ $ errorCode ] ) || ! is_callable ( $ this -> error [ $ errorCode ] ) ) { if ( isset ( $ this -> error [ 0 ] ) && is_callable ( $ this -> error [ 0 ] ) ) { $ callError = 0 ; } else { // Nothing set to handle this error! return ; } } // Error response function exists $ this -> match = true ; //call_user_func_array($this->error[$errorCode], array($errorCode, $errorMessage)); $ this -> error [ $ callError ] ( $ errorCode , $ errorMessage ) ; // Or use call_user_func_array ? exit ( $ errorCode ) ; }
docstring: Trigger an error route based on the error code and exit script with that error code
  
  @param  int $errorCode
  @param  string $errorMessage
  @return void
docstring_tokens: Trigger an error route based on the error code and exit script with that error code