Code Duplication    Length = 10-10 lines in 2 locations

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

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