Skip to content

Commit

Permalink
Cs - added trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgfeller committed Oct 28, 2024
1 parent b691416 commit 40db9dd
Show file tree
Hide file tree
Showing 87 changed files with 106 additions and 106 deletions.
2 changes: 1 addition & 1 deletion config/container.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,5 @@
// Add shared UserNetworkSessionData to the container so that the DTO can be populated and used in different places
UserNetworkSessionData::class => function () {
return new UserNetworkSessionData();
}
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(
private RedirectHandler $redirectHandler,
private SessionManagerInterface $sessionManager,
private SessionInterface $session,
private AccountUnlockTokenVerifier $accountUnlockTokenVerifier
private AccountUnlockTokenVerifier $accountUnlockTokenVerifier,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(
private RouteParserInterface $routeParser,
private SessionManagerInterface $sessionManager,
private SessionInterface $session,
private RegisterTokenVerifier $registerTokenVerifier
private RegisterTokenVerifier $registerTokenVerifier,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Client/Ajax/ClientCreateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$clientValues = (array)$request->getParsedBody();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$dropdownOptions = $this->clientUtilFinder->findClientDropdownValues();

Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Client/Ajax/ClientDeleteAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$clientId = (int)$args['client_id'];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
try {
// Retrieve clients with given filter values (or none)
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Client/Ajax/ClientUpdateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$clientId = (int)$args['client_id'];
$clientValues = (array)$request->getParsedBody();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$clientValues = (array)$request->getParsedBody();

Expand Down
4 changes: 2 additions & 2 deletions src/Application/Action/Client/Page/ClientListPageAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
public function __construct(
private TemplateRenderer $templateRenderer,
private ClientListFilterChipProvider $clientListFilterChipGetter,
private ClientPermissionVerifier $clientPermissionVerifier
private ClientPermissionVerifier $clientPermissionVerifier,
) {
}

public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
// Clients are loaded dynamically with js after page load for a faster loading time
// Retrieving available filters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$clientReadResult = $this->clientFinder->findClientReadAggregate((int)$args['client_id']);
$dropdownValues = $this->clientUtilFinder->findClientDropdownValues($clientReadResult->userId);
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Dashboard/DashboardPageAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$dashboards = $this->dashboardGetter->getAuthorizedDashboards();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$params = (array)$request->getParsedBody();
// As there is no other validation the request body is checked for valid keys here
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Note/Ajax/NoteCreateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$noteValues = (array)$request->getParsedBody();

Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Note/Ajax/NoteDeleteAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$noteId = (int)$args['note_id'];

Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Note/Ajax/NoteFetchListAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
try {
// Retrieve notes with given filter values (or none)
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Note/Ajax/NoteUpdateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$noteIdToChange = (int)$args['note_id'];
$noteValues = (array)$request->getParsedBody();
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/Note/Page/NoteReadPageAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$noteData = $this->noteFinder->findNote((int)$args['note_id']);
if ($noteData->id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
private JsonResponder $jsonResponder,
private SessionManagerInterface $sessionManager,
private SessionInterface $session,
private PasswordChanger $passwordChanger
private PasswordChanger $passwordChanger,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$queryParams = $request->getQueryParams();
// User ids may be an array or a single value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$dropdownOptions = $this->userUtilFinder->findUserDropdownValues();

Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/User/Ajax/UserDeleteAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$userIdToDelete = (int)$args['user_id'];
// Delete user
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/User/Ajax/UserFetchListAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
// Retrieve users
$userResultDataArray = $this->userFinder->findAllUsersResultDataForList();
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/User/Ajax/UserUpdateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
// Key 'user_id' for the user id in the URL is defined in the route definition in routes.php
$userIdToChange = (int)$args['user_id'];
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/User/Page/UserListPageAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
if ($this->userPermissionVerifier->isGrantedToRead()) {
return $this->templateRenderer->render($response, 'user/user-list.html.php');
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Action/User/Page/UserReadPageAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(
public function __invoke(
ServerRequestInterface $request,
ResponseInterface $response,
array $args
array $args,
): ResponseInterface {
$authenticatedUserId = $this->session->get('user_id');
$userId = (int)($args['user_id'] ?? $authenticatedUserId);
Expand Down
2 changes: 1 addition & 1 deletion src/Application/ErrorRenderer/ProdErrorPageRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(
public function renderHtmlProdErrorPage(
int $statusCode,
?string $safeExceptionMessage,
?string $errorReportEmailAddress
?string $errorReportEmailAddress,
): string {
return $this->phpRenderer->fetch('error/error-page.html.php', [
'statusCode' => $statusCode,
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Middleware/PhpViewMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(
private readonly JsImportCacheBuster $jsImportCacheBuster,
Settings $settings,
private readonly UserPermissionVerifier $userPermissionVerifier,
private readonly RouteParserInterface $routeParser
private readonly RouteParserInterface $routeParser,
) {
$this->publicSettings = $settings->get('public');
$this->deploymentSettings = $settings->get('deployment');
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Responder/JsonResponder.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public function encodeAndAddToResponse(
ResponseInterface $response,
mixed $data = null,
int $status = 200
int $status = 200,
): ResponseInterface {
$response->getBody()->write((string)json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PARTIAL_OUTPUT_ON_ERROR));
$response = $response->withStatus($status);
Expand Down
4 changes: 2 additions & 2 deletions src/Application/Responder/RedirectHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(private RouteParserInterface $routeParser)
public function redirectToUrl(
ResponseInterface $response,
string $destination,
array $queryParams = []
array $queryParams = [],
): ResponseInterface {
if ($queryParams) {
$destination = sprintf('%s?%s', $destination, http_build_query($queryParams));
Expand All @@ -52,7 +52,7 @@ public function redirectToRouteName(
ResponseInterface $response,
string $routeName,
array $data = [],
array $queryParams = []
array $queryParams = [],
): ResponseInterface {
return $this->redirectToUrl($response, $this->routeParser->urlFor($routeName, $data, $queryParams));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
final readonly class UserRoleFinderRepository
{
public function __construct(
private QueryFactory $queryFactory
private QueryFactory $queryFactory,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
final readonly class VerificationTokenCreatorRepository
{
public function __construct(
private QueryFactory $queryFactory
private QueryFactory $queryFactory,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
final readonly class VerificationTokenDeleterRepository
{
public function __construct(
private QueryFactory $queryFactory
private QueryFactory $queryFactory,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class VerificationTokenFinderRepository
{
public function __construct(
private readonly QueryFactory $queryFactory
private readonly QueryFactory $queryFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Domain/Authentication/Service/LoginMailSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class LoginMailSender
public function __construct(
private readonly Mailer $mailer,
private readonly LocaleConfigurator $localeConfigurator,
Settings $settings
Settings $settings,
) {
$settings = $settings->get('public')['email'];
// Create email object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(
public function handleLoginAttemptFromNonActiveUser(
UserData $dbUser,
array $queryParams,
?string $captcha = null
?string $captcha = null,
): void {
// DTO values may be null and these values are required
if (!isset($dbUser->id, $dbUser->email)) {
Expand Down Expand Up @@ -123,7 +123,7 @@ private function handleUnverifiedUserLoginAttempt(
int $userId,
string $email,
string $fullName,
array $queryParams = []
array $queryParams = [],
): void {
// Create a verification token, so they don't have to register again
$queryParams = $this->verificationTokenCreator->createUserVerification($userId, $queryParams);
Expand Down Expand Up @@ -170,7 +170,7 @@ private function handleLockedUserLoginAttempt(
int $userId,
string $email,
string $fullName,
array $queryParams = []
array $queryParams = [],
): void {
// Create verification token to unlock account
$queryParams = $this->verificationTokenCreator->createUserVerification($userId, $queryParams);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RegistrationMailSender
public function __construct(
private readonly Mailer $mailer,
private readonly LocaleConfigurator $localeConfigurator,
Settings $settings
Settings $settings,
) {
$settings = $settings->get('public')['email'];
// Create email object
Expand Down
2 changes: 1 addition & 1 deletion src/Domain/Client/Repository/ClientCreatorRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
final readonly class ClientCreatorRepository
{
public function __construct(
private QueryFactory $queryFactory
private QueryFactory $queryFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Domain/Client/Repository/ClientDeleterRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
final readonly class ClientDeleterRepository
{
public function __construct(
private QueryFactory $queryFactory
private QueryFactory $queryFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Domain/Client/Repository/ClientFinderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
public function __construct(
private QueryFactory $queryFactory,
private Hydrator $hydrator
private Hydrator $hydrator,
) {
}

Expand Down
Loading

0 comments on commit 40db9dd

Please sign in to comment.