Code Duplication    Length = 9-9 lines in 2 locations

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}

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

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