chore: code cleanup

This commit is contained in:
Björn Fromme committed 2025-08-21 14:20:43 +02:00
1 parent c4e28818e0
commit e36009008c
273 files changed
+547 -531

No files matched your search

@@ -16,7 +16,7 @@ class DeleteController extends AbstractController
{
public function __construct(
private readonly EntityManagerInterface $entityManager,
private readonly LoggerInterface $logger
private readonly LoggerInterface $logger,
) {
}
@@ -42,4 +42,4 @@ class DeleteController extends AbstractController
'document' => $document,
]);
}
}
}
@@ -17,7 +17,7 @@ class EditController extends AbstractController
{
public function __construct(
private readonly EntityManagerInterface $entityManager,
private readonly LoggerInterface $logger
private readonly LoggerInterface $logger,
) {
}
@@ -57,4 +57,4 @@ class EditController extends AbstractController
'form' => $form->createView(),
]);
}
}
}
@@ -14,7 +14,7 @@ class IndexController extends AbstractController
{
public function __construct(
private readonly UploadRepository $uploadRepository,
private readonly PaginatorInterface $paginator
private readonly PaginatorInterface $paginator,
) {
}
@@ -38,4 +38,4 @@ class IndexController extends AbstractController
'pagination' => $pagination,
]);
}
}
}
@@ -19,7 +19,7 @@ class ReplaceController extends AbstractController
public function __construct(
private readonly UploadHandler $uploadHandler,
private readonly EntityManagerInterface $entityManager,
private readonly LoggerInterface $logger
private readonly LoggerInterface $logger,
) {
}
@@ -61,4 +61,4 @@ class ReplaceController extends AbstractController
'form' => $form->createView(),
]);
}
}
}
@@ -19,7 +19,7 @@ class UploadController extends AbstractController
public function __construct(
private readonly UploadHandler $uploadHandler,
private readonly EntityManagerInterface $entityManager,
private readonly LoggerInterface $logger
private readonly LoggerInterface $logger,
) {
}
@@ -51,7 +51,7 @@ class UploadController extends AbstractController
if ($form->isSubmitted() && $form->isValid()) {
$count = count($uploadedDocuments);
$this->addFlash('success', $count === 1 ? 'Das Dokument wurde hochgeladen' : 'Die Dokumente wurden hochgeladen');
$this->addFlash('success', 1 === $count ? 'Das Dokument wurde hochgeladen' : 'Die Dokumente wurden hochgeladen');
$loggerContext = [];
foreach ($uploadedDocuments as $document) {
$loggerContext[] = [
@@ -68,4 +68,4 @@ class UploadController extends AbstractController
'form' => $form->createView(),
]);
}
}
}