Code Duplication    Length = 9-10 lines in 2 locations

src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location

@@ 802-811 (lines=10) @@
799
    /**
800
     * {@inheritdoc}
801
     */
802
    public function addForeignKey(Table $table, ForeignKey $foreignKey)
803
    {
804
        $this->execute(
805
            sprintf(
806
                'ALTER TABLE %s ADD %s',
807
                $this->quoteTableName($table->getName()),
808
                $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
809
            )
810
        );
811
    }
812
813
    /**
814
     * {@inheritdoc}

src/Phinx/Db/Adapter/PostgresAdapter.php 1 location

@@ 693-701 (lines=9) @@
690
    /**
691
     * {@inheritdoc}
692
     */
693
    public function addForeignKey(Table $table, ForeignKey $foreignKey)
694
    {
695
        $sql = sprintf(
696
            'ALTER TABLE %s ADD %s',
697
            $this->quoteTableName($table->getName()),
698
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
699
        );
700
        $this->execute($sql);
701
    }
702
703
    /**
704
     * {@inheritdoc}