Code Duplication    Length = 9-9 lines in 2 locations

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}

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

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