Code Duplication    Length = 7-8 lines in 2 locations

src/database/Postgres.php 2 locations

@@ 6341-6348 (lines=8) @@
6338
            $tgdef .= ' INSERT';
6339
            $findx++;
6340
        }
6341
        if (($trigger['tgtype'] & TRIGGER_TYPE_DELETE) == TRIGGER_TYPE_DELETE) {
6342
            if ($findx > 0) {
6343
                $tgdef .= ' OR DELETE';
6344
            } else {
6345
                $tgdef .= ' DELETE';
6346
                $findx++;
6347
            }
6348
        }
6349
        if (($trigger['tgtype'] & TRIGGER_TYPE_UPDATE) == TRIGGER_TYPE_UPDATE) {
6350
            if ($findx > 0) {
6351
                $tgdef .= ' OR UPDATE';
@@ 6349-6355 (lines=7) @@
6346
                $findx++;
6347
            }
6348
        }
6349
        if (($trigger['tgtype'] & TRIGGER_TYPE_UPDATE) == TRIGGER_TYPE_UPDATE) {
6350
            if ($findx > 0) {
6351
                $tgdef .= ' OR UPDATE';
6352
            } else {
6353
                $tgdef .= ' UPDATE';
6354
            }
6355
        }
6356
6357
        $f_schema = $this->_schema;
6358
        $this->fieldClean($f_schema);