Code Duplication    Length = 4-4 lines in 2 locations

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

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