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

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