Skip to content

Commit 64b4ac4

Browse files
author
tchapi
committed
chore
1 parent c7ca6c9 commit 64b4ac4

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

src/Controller/Api/ApiController.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,9 @@ private function getTimestamp(): string
4343
/**
4444
* Resolves a User entity from a userId, or returns a JSON error response.
4545
*
46-
* @param ManagerRegistry $doctrine
47-
* @param int $userId
48-
*
49-
* @return User| null The User entity, or null if not found
46+
* @return User|null The User entity, or null if not found
5047
*/
51-
private function resolveUser(ManagerRegistry $doctrine, int $userId): User|null
48+
private function resolveUser(ManagerRegistry $doctrine, int $userId): ?User
5249
{
5350
return $doctrine->getRepository(User::class)->findOneById($userId);
5451
}
@@ -732,4 +729,4 @@ public function removeUserCalendarsShare(Request $request, int $userId, int $cal
732729

733730
return $this->json(['status' => 'success', 'timestamp' => $this->getTimestamp()], 200);
734731
}
735-
}
732+
}

tests/Functional/ApiControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,4 +582,4 @@ public function testDeleteUserCalendar(): void
582582
$this->assertEquals('success', $data['status']);
583583
$this->assertEmpty($data['data']);
584584
}
585-
}
585+
}

0 commit comments

Comments
 (0)