Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function getMetadata(RegistrationResultInterface $registrationResult): ?MetadataInterface |
||
13 | { |
||
14 | // NOTE: Apple always used a zero AAGUID but has changed this to a specific AAGUID later, which might be |
||
15 | // resolved using a metadata service. |
||
16 | if ($registrationResult->getAttestationObject()->getFormat() === AppleAttestationStatement::FORMAT_ID) { |
||
17 | return new AppleDeviceMetadata(); |
||
18 | } |
||
19 | return null; |
||
20 | } |
||
27 |