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

@@ 712-721 (lines=10) @@
709
     *
710
     * @param Schema $schema
711
     */
712
    public static function addOroEmailMailboxProcessorColumns(Schema $schema)
713
    {
714
        $table = $schema->getTable('oro_email_mailbox_process');
715
716
        $table->addColumn('lead_channel_id', 'integer', ['notnull' => false]);
717
        $table->addColumn('lead_owner_id', 'integer', ['notnull' => false]);
718
        $table->addColumn('lead_source_id', 'string', ['notnull' => false, 'length' => 32]);
719
        $table->addIndex(['lead_owner_id'], 'IDX_CE8602A3D46FE3FA', []);
720
        $table->addIndex(['lead_channel_id'], 'IDX_CE8602A35A6EBA36', []);
721
    }
722
723
    /**
724
     * Add oro_email_mailbox_processor foreign keys.