mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Add missing return types
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
This commit is contained in:
parent
651044ce17
commit
7d05d1f604
2 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ class AuthTokens extends Base {
|
|||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function configure() {
|
||||
protected function configure(): void {
|
||||
parent::configure();
|
||||
|
||||
$this
|
||||
|
|
@ -61,7 +61,7 @@ class AuthTokens extends Base {
|
|||
|
||||
$tokens = $this->tokenProvider->getTokenByUser($user->getUID());
|
||||
|
||||
$data = array_map(fn (IToken $token) => $token->jsonSerialize(), $tokens);
|
||||
$data = array_map(fn (IToken $token): mixed => $token->jsonSerialize(), $tokens);
|
||||
|
||||
$this->writeArrayInOutputFormat($input, $output, $data);
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class DeleteAuthToken extends Base {
|
|||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function configure() {
|
||||
protected function configure(): void {
|
||||
$this
|
||||
->setName('user:delete-auth-token')
|
||||
->setDescription('Deletes an authentication token')
|
||||
|
|
|
|||
Loading…
Reference in a new issue