original_string: public function getErrors()
      {
          if (!empty($this->fixed_error))
              return count($this->errors) ? [$this->fixed_error] : [];
  
          return $this->errors;
      }
code: public function getErrors()
      {
          if (!empty($this->fixed_error))
              return count($this->errors) ? [$this->fixed_error] : [];
  
          return $this->errors;
      }
code_tokens: public function getErrors ( ) { if ( ! empty ( $ this -> fixed_error ) ) return count ( $ this -> errors ) ? [ $ this -> fixed_error ] : [ ] ; return $ this -> errors ; }
docstring: Return the error messages produced during validation. Should be called
  after validation failed, otherwise an non-relevant or empty array will be
  returned.
  
  @return array List of errors. Empty when validation succeeded.
docstring_tokens: Return the error messages produced during validation . Should be called after validation failed otherwise an non - relevant or empty array will be returned .