Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 797-805 (lines=9) @@
794
    /**
795
     * {@inheritdoc}
796
     */
797
    protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey)
798
    {
799
        $alter = sprintf(
800
            'ADD %s',
801
            $this->getForeignKeySqlDefinition($foreignKey)
802
        );
803
804
        return new AlterInstructions([$alter]);
805
    }
806
807
    /**
808
     * {@inheritdoc}

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

@@ 875-883 (lines=9) @@
872
    /**
873
     * {@inheritdoc}
874
     */
875
    protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey)
876
    {
877
        $alter = sprintf(
878
            'ADD %s',
879
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
880
        );
881
882
        return new AlterInstructions([$alter]);
883
    }
884
885
    /**
886
     * {@inheritdoc}