Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 249-252 (lines=4) @@
246
            }
247
248
            // If the user SHO is available in the <LoAs>, add to the candidates collection.
249
            if (isset($spConfiguredLoas[$normalizedUserSho])) {
250
                $this->logger->info(sprintf('Added Loa "%s" as candidate based on user SHO', $requestedLoa));
251
                $loaCandidates->add($spConfiguredLoas[$normalizedUserSho]);
252
            }
253
254
            // If the IdP SHO is available in the <LoAs>, add the to the candidates collection.
255
            if (isset($spConfiguredLoas[$normalizedIdpSho])) {
@@ 255-258 (lines=4) @@
252
            }
253
254
            // If the IdP SHO is available in the <LoAs>, add the to the candidates collection.
255
            if (isset($spConfiguredLoas[$normalizedIdpSho])) {
256
                $this->logger->info(sprintf('Added Loa "%s" as candidate based on IdP SHO', $requestedLoa));
257
                $loaCandidates->add($spConfiguredLoas[$normalizedIdpSho]);
258
            }
259
        }
260
261
        if (!count($loaCandidates)) {