Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 867-875 (lines=9) @@
864
    /**
865
     * @inheritDoc
866
     */
867
    protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey)
868
    {
869
        $alter = sprintf(
870
            'ADD %s',
871
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
872
        );
873
874
        return new AlterInstructions([$alter]);
875
    }
876
877
    /**
878
     * @inheritDoc

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

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