Code Duplication    Length = 9-10 lines in 2 locations

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

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

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}