original_string: public function getErrors($format = true)
      {
          if (!$format) {
              return $this->errors;
          }
  
          $formatted = array();
  
          foreach ($this->errors as $error) {
              $formatted[] = $this->getFormattedError($error);
          }
  
          return $formatted;
      }
code: public function getErrors($format = true)
      {
          if (!$format) {
              return $this->errors;
          }
  
          $formatted = array();
  
          foreach ($this->errors as $error) {
              $formatted[] = $this->getFormattedError($error);
          }
  
          return $formatted;
      }
code_tokens: public function getErrors ( $ format = true ) { if ( ! $ format ) { return $ this -> errors ; } $ formatted = array ( ) ; foreach ( $ this -> errors as $ error ) { $ formatted [ ] = $ this -> getFormattedError ( $ error ) ; } return $ formatted ; }
docstring: Returns an array of collected PHP errors
  @param boolean $format
  @return array
docstring_tokens: Returns an array of collected PHP errors