Code Duplication    Length = 9-9 lines in 2 locations

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

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

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

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