Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 637-645 (lines=9) @@
634
    /**
635
     * {@inheritdoc}
636
     */
637
    protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey)
638
    {
639
        $alter = sprintf(
640
            'ADD %s',
641
            $this->getForeignKeySqlDefinition($foreignKey)
642
        );
643
644
        return new AlterInstructions([$alter]);
645
    }
646
647
    /**
648
     * {@inheritdoc}

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

@@ 728-736 (lines=9) @@
725
    /**
726
     * {@inheritdoc}
727
     */
728
    protected function getAddForeignKeyInstructions(Table $table, ForeignKey $foreignKey)
729
    {
730
        $alter = sprintf(
731
            'ADD %s',
732
            $this->getForeignKeySqlDefinition($foreignKey, $table->getName())
733
        );
734
735
        return new AlterInstructions([$alter]);
736
    }
737
738
    /**
739
     * {@inheritdoc}