Code Duplication    Length = 9-9 lines in 2 locations

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

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

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

@@ 766-774 (lines=9) @@
763
    /**
764
     * {@inheritdoc}
765
     */
766
    protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey)
767
    {
768
        $alter = sprintf(
769
            'ADD %s',
770
            $this->getForeignKeySqlDefinition($foreignKey)
771
        );
772
773
        return new AlterInstructions([$alter]);
774
    }
775
776
    /**
777
     * {@inheritdoc}