Code Duplication    Length = 10-10 lines in 2 locations

src/Surfnet/StepupMiddleware/ApiBundle/Configuration/Repository/InstitutionAuthorizationRepository.php 2 locations

@@ 36-45 (lines=10) @@
33
     * @param InstitutionRole $role
34
     * @return InstitutionAuthorization[]
35
     */
36
    public function findAuthorizationOptionsForInstitutionByRole(Institution $institution, InstitutionRole $role)
37
    {
38
        return $this->createQueryBuilder('ia')
39
            ->where('ia.institution = :institution')
40
            ->andWhere('ia.role = :role')
41
            ->setParameter('institution', $institution->getInstitution())
42
            ->setParameter('institutionRole', $role)
43
            ->getQuery()
44
            ->getResult();
45
    }
46
47
    /**
48
     * @param Institution $institution
@@ 65-74 (lines=10) @@
62
     * @param InstitutionRole $role
63
     * @return InstitutionAuthorization[]
64
     */
65
    public function findSelectRaasForInstitution(Institution $institution, InstitutionRole $role)
66
    {
67
        return $this->createQueryBuilder('ia')
68
            ->where('ia.institutionRelation = :institution')
69
            ->andWhere('ia.institutionRole = :role')
70
            ->setParameter('institution', $institution->getInstitution())
71
            ->setParameter('role', $role->getType())
72
            ->getQuery()
73
            ->getResult();
74
    }
75
76
    /**
77
     * @param Institution $institution