Code Duplication    Length = 9-10 lines in 2 locations

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

@@ 792-801 (lines=10) @@
789
    /**
790
     * {@inheritdoc}
791
     */
792
    public function addForeignKey(Table $table, ForeignKey $foreignKey)
793
    {
794
        $this->execute(
795
            sprintf(
796
                'ALTER TABLE %s ADD %s',
797
                $this->quoteTableName($table->getName()),
798
                $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
799
            )
800
        );
801
    }
802
803
    /**
804
     * {@inheritdoc}

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

@@ 680-688 (lines=9) @@
677
    /**
678
     * {@inheritdoc}
679
     */
680
    public function addForeignKey(Table $table, ForeignKey $foreignKey)
681
    {
682
        $sql = sprintf(
683
            'ALTER TABLE %s ADD %s',
684
            $this->quoteTableName($table->getName()),
685
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
686
        );
687
        $this->execute($sql);
688
    }
689
690
    /**
691
     * {@inheritdoc}