Code Duplication    Length = 9-10 lines in 2 locations

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

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

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

@@ 707-715 (lines=9) @@
704
    /**
705
     * {@inheritdoc}
706
     */
707
    public function addForeignKey(Table $table, ForeignKey $foreignKey)
708
    {
709
        $sql = sprintf(
710
            'ALTER TABLE %s ADD %s',
711
            $this->quoteTableName($table->getName()),
712
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
713
        );
714
        $this->execute($sql);
715
    }
716
717
    /**
718
     * {@inheritdoc}