Code Duplication    Length = 10-10 lines in 2 locations

src/OroCRM/Bundle/SalesBundle/Entity/Repository/OpportunityRepository.php 2 locations

@@ 348-357 (lines=10) @@
345
     *
346
     * @return int
347
     */
348
    public function getOpportunitiesCount(
349
        AclHelper $aclHelper,
350
        \DateTime $start = null,
351
        \DateTime $end = null,
352
        $owners = []
353
    ) {
354
        $qb = $this->createOpportunitiesCountQb($start, $end, $owners);
355
356
        return $aclHelper->apply($qb)->getSingleScalarResult();
357
    }
358
359
    /**
360
     * @param AclHelper $aclHelper
@@ 367-376 (lines=10) @@
364
     *
365
     * @return int
366
     */
367
    public function getNewOpportunitiesCount(
368
        AclHelper $aclHelper,
369
        \DateTime $start = null,
370
        \DateTime $end = null,
371
        $owners = []
372
    ) {
373
        $qb = $this->createOpportunitiesCountQb($start, $end, $owners);
374
375
        return $aclHelper->apply($qb)->getSingleScalarResult();
376
    }
377
378
    /**
379
     * @param \DateTime $start