original_string: public static function instance_form_validation($mform, $data, $errors) {
          $fspath = clean_param(trim($data['fs_path'], '/'), PARAM_PATH);
          if (empty($fspath) && !is_numeric($fspath)) {
              $errors['fs_path'] = get_string('invalidadminsettingname', 'error', 'fs_path');
          }
          return $errors;
      }
code: public static function instance_form_validation($mform, $data, $errors) {
          $fspath = clean_param(trim($data['fs_path'], '/'), PARAM_PATH);
          if (empty($fspath) && !is_numeric($fspath)) {
              $errors['fs_path'] = get_string('invalidadminsettingname', 'error', 'fs_path');
          }
          return $errors;
      }
code_tokens: public static function instance_form_validation ( $ mform , $ data , $ errors ) { $ fspath = clean_param ( trim ( $ data [ 'fs_path' ] , '/' ) , PARAM_PATH ) ; if ( empty ( $ fspath ) && ! is_numeric ( $ fspath ) ) { $ errors [ 'fs_path' ] = get_string ( 'invalidadminsettingname' , 'error' , 'fs_path' ) ; } return $ errors ; }
docstring: Validate repository plugin instance form
  
  @param moodleform $mform moodle form
  @param array $data form data
  @param array $errors errors
  @return array errors
docstring_tokens: Validate repository plugin instance form