Code Duplication    Length = 6-6 lines in 2 locations

src/OroCRM/Bundle/SalesBundle/Migrations/Schema/v1_23/UpdateWorkflowItemStepData.php 2 locations

@@ 82-87 (lines=6) @@
79
            'UPDATE oro_workflow_item SET workflow_name = :new_workflow_name WHERE workflow_name = :old_workflow_name',
80
        ];
81
82
        foreach ($queries as $sql) {
83
            $this->logQuery($logger, $sql, $params, $types);
84
            if (!$dryRun) {
85
                $this->connection->executeUpdate($sql, $params, $types);
86
            }
87
        }
88
89
        $params = ['old_workflow_name' => 'b2b_flow_sales'];
90
        $types  = ['old_workflow_name' => Type::STRING];
@@ 287-292 (lines=6) @@
284
        $sql = 'UPDATE orocrm_sales_opportunity SET workflow_step_id = :new_workflow_step_id' .
285
               ' WHERE workflow_step_id = :old_workflow_step_id AND status_id = :status_id';
286
287
        foreach ($params as $param) {
288
            $this->logQuery($logger, $sql, $param, $types);
289
            if (!$dryRun) {
290
                $this->connection->executeUpdate($sql, $param, $types);
291
            }
292
        }
293
    }
294
295
    /**