Code Duplication    Length = 7-8 lines in 2 locations

src/system/RoutesModule/Entity/Repository/Base/AbstractRouteRepository.php 2 locations

@@ 369-376 (lines=8) @@
366
     *
367
     * @return ArrayCollection Collection containing retrieved routeEntity instances
368
     */
369
    public function selectWhere($where = '', $orderBy = '', $useJoins = true, $slimMode = false)
370
    {
371
        $qb = $this->getListQueryBuilder($where, $orderBy, $useJoins, $slimMode);
372
    
373
        $query = $this->getQueryFromBuilder($qb);
374
    
375
        return $this->retrieveCollectionResult($query, false);
376
    }
377
378
    /**
379
     * Returns query builder instance for retrieving a list of objects with a given where clause and pagination parameters.
@@ 410-416 (lines=7) @@
407
     *
408
     * @return array Retrieved collection and amount of total records affected by this query
409
     */
410
    public function selectWherePaginated($where = '', $orderBy = '', $currentPage = 1, $resultsPerPage = 25, $useJoins = true, $slimMode = false)
411
    {
412
        $qb = $this->getListQueryBuilder($where, $orderBy, $useJoins, $slimMode);
413
        $query = $this->getSelectWherePaginatedQuery($qb, $currentPage, $resultsPerPage);
414
    
415
        return $this->retrieveCollectionResult($query, true);
416
    }
417
418
    /**
419
     * Selects entities by a given search fragment.