Code Duplication    Length = 10-10 lines in 2 locations

src/OroCRM/Bundle/SalesBundle/Migrations/Schema/v1_18/OroCRMSalesBundle.php 1 location

@@ 26-35 (lines=10) @@
23
     *
24
     * @param Schema $schema
25
     */
26
    public static function addOroEmailMailboxProcessorColumns(Schema $schema)
27
    {
28
        $table = $schema->getTable('oro_email_mailbox_process');
29
30
        $table->addColumn('lead_channel_id', 'integer', ['notnull' => false]);
31
        $table->addColumn('lead_owner_id', 'integer', ['notnull' => false]);
32
        $table->addColumn('lead_source_id', 'string', ['notnull' => false, 'length' => 32]);
33
        $table->addIndex(['lead_owner_id'], 'IDX_CE8602A3D46FE3FA', []);
34
        $table->addIndex(['lead_channel_id'], 'IDX_CE8602A35A6EBA36', []);
35
    }
36
37
    /**
38
     * Add oro_email_mailbox_processor foreign keys.

src/OroCRM/Bundle/SalesBundle/Migrations/Schema/OroCRMSalesBundleInstaller.php 1 location

@@ 686-695 (lines=10) @@
683
     *
684
     * @param Schema $schema
685
     */
686
    public static function addOroEmailMailboxProcessorColumns(Schema $schema)
687
    {
688
        $table = $schema->getTable('oro_email_mailbox_process');
689
690
        $table->addColumn('lead_channel_id', 'integer', ['notnull' => false]);
691
        $table->addColumn('lead_owner_id', 'integer', ['notnull' => false]);
692
        $table->addColumn('lead_source_id', 'string', ['notnull' => false, 'length' => 32]);
693
        $table->addIndex(['lead_owner_id'], 'IDX_CE8602A3D46FE3FA', []);
694
        $table->addIndex(['lead_channel_id'], 'IDX_CE8602A35A6EBA36', []);
695
    }
696
697
    /**
698
     * Add oro_email_mailbox_processor foreign keys.