Code Duplication    Length = 9-10 lines in 2 locations

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

@@ 662-670 (lines=9) @@
659
    /**
660
     * {@inheritdoc}
661
     */
662
    public function addForeignKey(Table $table, ForeignKey $foreignKey)
663
    {
664
        $sql = sprintf(
665
            'ALTER TABLE %s ADD %s',
666
            $this->quoteTableName($table->getName()),
667
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
668
        );
669
        $this->execute($sql);
670
    }
671
672
    /**
673
     * {@inheritdoc}

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

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