Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 856-864 (lines=9) @@
853
    /**
854
     * {@inheritdoc}
855
     */
856
    protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey)
857
    {
858
        $alter = sprintf(
859
            'ADD %s',
860
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
861
        );
862
863
        return new AlterInstructions([$alter]);
864
    }
865
866
    /**
867
     * {@inheritdoc}

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

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