Code Duplication    Length = 4-4 lines in 2 locations

src/Surfnet/StepupGateway/GatewayBundle/Service/StepUpAuthenticationService.php 2 locations

@@ 233-236 (lines=4) @@
230
            }
231
232
            // If the user SHO is available in the <LoAs>, add the to the candidates collection.
233
            if (isset($spConfiguredLoas[$userSho])) {
234
                $this->logger->info(sprintf('Added Loa "%s" as candidate based on user SHO', $requestedLoa));
235
                $loaCandidates->add($spConfiguredLoas[$userSho]);
236
            }
237
238
            // If the IdP SHO is available in the <LoAs>, add the to the candidates collection.
239
            if (isset($spConfiguredLoas[$idpSho])) {
@@ 239-242 (lines=4) @@
236
            }
237
238
            // If the IdP SHO is available in the <LoAs>, add the to the candidates collection.
239
            if (isset($spConfiguredLoas[$idpSho])) {
240
                $this->logger->info(sprintf('Added Loa "%s" as candidate based on IdP SHO', $requestedLoa));
241
                $loaCandidates->add($spConfiguredLoas[$idpSho]);
242
            }
243
        }
244
245
        if (!count($loaCandidates)) {