Code Duplication    Length = 9-9 lines in 2 locations

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}

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

@@ 813-821 (lines=9) @@
810
    /**
811
     * {@inheritdoc}
812
     */
813
    protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey)
814
    {
815
        $alter = sprintf(
816
            'ADD %s',
817
            $this->getForeignKeySqlDefinition($foreignKey)
818
        );
819
820
        return new AlterInstructions([$alter]);
821
    }
822
823
    /**
824
     * {@inheritdoc}