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

@@ 686-694 (lines=9) @@
683
    /**
684
     * {@inheritdoc}
685
     */
686
    public function addForeignKey(Table $table, ForeignKey $foreignKey)
687
    {
688
        $sql = sprintf(
689
            'ALTER TABLE %s ADD %s',
690
            $this->quoteTableName($table->getName()),
691
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
692
        );
693
        $this->execute($sql);
694
    }
695
696
    /**
697
     * {@inheritdoc}