| Conditions | 4 |
| Paths | 5 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function getMetadata(RegistrationResultInterface $registrationResult): ?MetadataInterface |
||
| 29 | { |
||
| 30 | foreach ($this->providers as $provider) { |
||
| 31 | try { |
||
| 32 | $metadata = $provider->getMetadata($registrationResult); |
||
| 33 | if ($metadata !== null) { |
||
| 34 | $this->logger->info('Found metadata for authenticator in provider {provider}.', ['provider' => $provider->getDescription()]); |
||
|
|
|||
| 35 | return $metadata; |
||
| 36 | } |
||
| 37 | } catch (WebAuthnException $e) { |
||
| 38 | $this->logger->warning('Error retrieving metadata ({error}) - ignoring provider {provider}.', ['error' => $e->getMessage(), 'provider' => $provider->getDescription(), 'exception' => $e]); |
||
| 39 | continue; |
||
| 40 | } |
||
| 41 | } |
||
| 42 | return null; |
||
| 43 | } |
||
| 45 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.