Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 342-351 (lines=10) @@
339
     *
340
     * @return int
341
     */
342
    public function getOpportunitiesCount(
343
        AclHelper $aclHelper,
344
        \DateTime $start = null,
345
        \DateTime $end = null,
346
        $owners = []
347
    ) {
348
        $qb = $this->createOpportunitiesCountQb($start, $end, $owners);
349
350
        return $aclHelper->apply($qb)->getSingleScalarResult();
351
    }
352
353
    /**
354
     * @param AclHelper $aclHelper
@@ 361-370 (lines=10) @@
358
     *
359
     * @return int
360
     */
361
    public function getNewOpportunitiesCount(
362
        AclHelper $aclHelper,
363
        \DateTime $start = null,
364
        \DateTime $end = null,
365
        $owners = []
366
    ) {
367
        $qb = $this->createOpportunitiesCountQb($start, $end, $owners);
368
369
        return $aclHelper->apply($qb)->getSingleScalarResult();
370
    }
371
372
    /**
373
     * @param \DateTime $start