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

@@ 730-738 (lines=9) @@
727
    /**
728
     * {@inheritdoc}
729
     */
730
    public function addForeignKey(Table $table, ForeignKey $foreignKey)
731
    {
732
        $sql = sprintf(
733
            'ALTER TABLE %s ADD %s',
734
            $this->quoteTableName($table->getName()),
735
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
736
        );
737
        $this->execute($sql);
738
    }
739
740
    /**
741
     * {@inheritdoc}