Code Duplication    Length = 9-10 lines in 2 locations

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

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

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

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