Code Duplication    Length = 8-8 lines in 2 locations

module/Auth/src/Auth/Repository/User.php 1 location

@@ 54-61 (lines=8) @@
51
    /**
52
     * {@inheritDoc}
53
     */
54
    public function createQueryBuilder($findDrafts = false)
55
    {
56
        $qb = parent::createQueryBuilder();
57
        if (null !== $findDrafts) {
58
            $qb->field('isDraft')->equals($findDrafts);
59
        }
60
        return $qb;
61
    }
62
63
    /**
64
     * Creates a User

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

@@ 56-63 (lines=8) @@
53
    /**
54
     * {@inheritDoc}
55
     */
56
    public function createQueryBuilder($findDrafts = false)
57
    {
58
        $qb = parent::createQueryBuilder();
59
        if (null !== $findDrafts) {
60
            $qb->field('isDraft')->equals($findDrafts);
61
        }
62
        return $qb;
63
    }
64
    
65
    /**
66
     * Gets a pointer to an application