Code Duplication    Length = 7-8 lines in 2 locations

src/database/Postgres.php 2 locations

@@ 6202-6209 (lines=8) @@
6199
            $tgdef .= ' INSERT';
6200
            $findx++;
6201
        }
6202
        if (($trigger['tgtype'] & TRIGGER_TYPE_DELETE) == TRIGGER_TYPE_DELETE) {
6203
            if ($findx > 0) {
6204
                $tgdef .= ' OR DELETE';
6205
            } else {
6206
                $tgdef .= ' DELETE';
6207
                $findx++;
6208
            }
6209
        }
6210
        if (($trigger['tgtype'] & TRIGGER_TYPE_UPDATE) == TRIGGER_TYPE_UPDATE) {
6211
            if ($findx > 0) {
6212
                $tgdef .= ' OR UPDATE';
@@ 6210-6216 (lines=7) @@
6207
                $findx++;
6208
            }
6209
        }
6210
        if (($trigger['tgtype'] & TRIGGER_TYPE_UPDATE) == TRIGGER_TYPE_UPDATE) {
6211
            if ($findx > 0) {
6212
                $tgdef .= ' OR UPDATE';
6213
            } else {
6214
                $tgdef .= ' UPDATE';
6215
            }
6216
        }
6217
6218
        $f_schema = $this->_schema;
6219
        $this->fieldClean($f_schema);