original_string: protected function validate_text($errors, $field, $text) {
          $problems = qtype_calculated_find_formula_errors_in_text($text);
          if ($problems) {
              $errors[$field] = $problems;
          }
          return $errors;
      }
code: protected function validate_text($errors, $field, $text) {
          $problems = qtype_calculated_find_formula_errors_in_text($text);
          if ($problems) {
              $errors[$field] = $problems;
          }
          return $errors;
      }
code_tokens: protected function validate_text ( $ errors , $ field , $ text ) { $ problems = qtype_calculated_find_formula_errors_in_text ( $ text ) ; if ( $ problems ) { $ errors [ $ field ] = $ problems ; } return $ errors ; }
docstring: Validate the equations in the some question content.
  @param array $errors where errors are being accumulated.
  @param string $field the field being validated.
  @param string $text the content of that field.
  @return array the updated $errors array.
docstring_tokens: Validate the equations in the some question content .