Code Duplication    Length = 6-6 lines in 2 locations

class/bbctypes.class.php 2 locations

@@ 209-214 (lines=6) @@
206
            } else {
207
                return 0;
208
            }
209
        } else {
210
            $this->errors[] = 'Error ' . $this->db->lasterror();
211
            dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR);
212
213
            return -1;
214
        }
215
    }
216
217
    /**
@@ 295-300 (lines=6) @@
292
            $this->db->free($resql);
293
294
            return $num;
295
        } else {
296
            $this->errors[] = 'Error ' . $this->db->lasterror();
297
            dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR);
298
299
            return -1;
300
        }
301
    }
302
303
    /**