Skip to content

Commit cf16851

Browse files
committed
Improve phpdoc for get_certs and register
1 parent 3622240 commit cf16851

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/U2FServer.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ public static function makeRegistration($appId, array $registrations = [])
7575
*
7676
* @param RegistrationRequest $request this is a reply to
7777
* @param object $response response from a user
78-
* @param string $attestDir
78+
* @param string|null $attestDir The folder to use where trusted CA files are stored (optional)
7979
* @param bool $includeCert set to true if the attestation certificate should be
80-
* included in the returned Registration object
80+
* included in the returned Registration object (optional)
8181
* @return Registration
8282
* @throws U2FException
8383
*/
@@ -335,8 +335,10 @@ public static function authenticate(array $requests, array $registrations, $resp
335335
}
336336

337337
/**
338-
* @param string $attestDir
339-
* @return array
338+
* Get all files from a directory
339+
*
340+
* @param string $attestDir The folder to find files into
341+
* @return string[]
340342
*/
341343
private static function get_certs($attestDir)
342344
{

0 commit comments

Comments
 (0)