Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 707-715 (lines=9) @@
704
    /**
705
     * {@inheritdoc}
706
     */
707
    protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey)
708
    {
709
        $alter = sprintf(
710
            'ADD %s',
711
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
712
        );
713
714
        return new AlterInstructions([$alter]);
715
    }
716
717
    /**
718
     * {@inheritdoc}

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

@@ 650-658 (lines=9) @@
647
    /**
648
     * {@inheritdoc}
649
     */
650
    protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey)
651
    {
652
        $alter = sprintf(
653
            'ADD %s',
654
            $this->getForeignKeySqlDefinition($foreignKey)
655
        );
656
657
        return new AlterInstructions([ $alter ]);
658
    }
659
660
    /**
661
     * {@inheritdoc}