Code Duplication    Length = 9-9 lines in 2 locations

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

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

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

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