Code Duplication    Length = 7-7 lines in 4 locations

module/Cv/src/Cv/Repository/Cv.php 1 location

@@ 31-37 (lines=7) @@
28
     * @param array $params
29
     * @return unknown
30
     */
31
    protected function getPaginationQueryBuilder($params)
32
    {
33
        $filter = $this->getService('filterManager')->get('Applications/PaginationQuery');
34
        $qb = $filter->filter($params, $this->createQueryBuilder());
35
    
36
        return $qb;
37
    }
38
39
    /**
40
     * Look for an drafted Document of a given user

module/Organizations/src/Organizations/Repository/Organization.php 1 location

@@ 42-48 (lines=7) @@
39
     * @param array $params
40
     * @return mixed
41
     */
42
    protected function getPaginationQueryBuilder($params)
43
    {
44
        $filter = $this->getService('filterManager')->get('Organizations/PaginationQuery');
45
        $qb = $filter->filter($params, $this->createQueryBuilder());
46
        
47
        return $qb;
48
    }
49
50
    /**
51
     * Gets a cursor for all hiring organizations.

module/Jobs/src/Jobs/Repository/Job.php 1 location

@@ 24-30 (lines=7) @@
21
     * @param $params
22
     * @return mixed
23
     */
24
    public function getPaginatorCursor($params)
25
    {
26
        $filter = $this->getService('filterManager')->get('Jobs/PaginationQuery');
27
        /* @var $filter \Core\Repository\Filter\AbstractPaginationQuery  */
28
        $qb = $filter->filter($params, $this->createQueryBuilder());
29
        return $qb->getQuery()->execute();
30
    }
31
32
    /**
33
     * Checks, if a job posting with a certain applyId (external job id) exists

module/Applications/src/Applications/Repository/Application.php 1 location

@@ 83-89 (lines=7) @@
80
     * @param array $params
81
     * @return unknown
82
     */
83
    protected function getPaginationQueryBuilder($params)
84
    {
85
        $filter = $this->getService('filterManager')->get('PaginationQuery/Applications');
86
        $qb = $filter->filter($params, $this->createQueryBuilder());
87
        
88
        return $qb;
89
    }
90
    
91
    /**
92
     * Gets a result list of applications