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

@@ 645-654 (lines=10) @@
642
     *
643
     * @param Schema $schema
644
     */
645
    public static function addOroEmailMailboxProcessorColumns(Schema $schema)
646
    {
647
        $table = $schema->getTable('oro_email_mailbox_process');
648
649
        $table->addColumn('lead_channel_id', 'integer', ['notnull' => false]);
650
        $table->addColumn('lead_owner_id', 'integer', ['notnull' => false]);
651
        $table->addColumn('lead_source_id', 'string', ['notnull' => false, 'length' => 32]);
652
        $table->addIndex(['lead_owner_id'], 'IDX_CE8602A3D46FE3FA', []);
653
        $table->addIndex(['lead_channel_id'], 'IDX_CE8602A35A6EBA36', []);
654
    }
655
656
    /**
657
     * Add oro_email_mailbox_processor foreign keys.