diff --git a/webapp/src/Controller/API/AbstractApiController.php b/webapp/src/Controller/API/AbstractApiController.php index f35de779d9..219c53b6b0 100644 --- a/webapp/src/Controller/API/AbstractApiController.php +++ b/webapp/src/Controller/API/AbstractApiController.php @@ -10,7 +10,6 @@ use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\QueryBuilder; -use Exception; use FOS\RestBundle\Controller\AbstractFOSRestController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; diff --git a/webapp/src/Controller/API/AccessController.php b/webapp/src/Controller/API/AccessController.php index 68b8c5d2f2..cbbe2e3e97 100644 --- a/webapp/src/Controller/API/AccessController.php +++ b/webapp/src/Controller/API/AccessController.php @@ -9,8 +9,8 @@ use FOS\RestBundle\Controller\Annotations as Rest; use Nelmio\ApiDocBundle\Annotation\Model; use OpenApi\Attributes as OA; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[Rest\Route('/contests/{cid}/access')] #[OA\Tag(name: 'Access')] diff --git a/webapp/src/Controller/API/ClarificationController.php b/webapp/src/Controller/API/ClarificationController.php index e3fa66263c..a2a7c3046f 100644 --- a/webapp/src/Controller/API/ClarificationController.php +++ b/webapp/src/Controller/API/ClarificationController.php @@ -6,7 +6,6 @@ use App\Entity\Clarification; use App\Entity\Contest; use App\Entity\ContestProblem; -use App\Entity\Problem; use App\Entity\Team; use App\Utils\Utils; use Doctrine\ORM\NonUniqueResultException; diff --git a/webapp/src/Controller/API/ContestController.php b/webapp/src/Controller/API/ContestController.php index a424e49a48..e9c26de554 100644 --- a/webapp/src/Controller/API/ContestController.php +++ b/webapp/src/Controller/API/ContestController.php @@ -29,20 +29,20 @@ use Psr\Log\LoggerInterface; use Symfony\Component\DependencyInjection\Attribute\Autowire; use Symfony\Component\ExpressionLanguage\Expression; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; +use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; +use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\Validator\Validator\ValidatorInterface; use Symfony\Component\Yaml\Yaml; use TypeError; diff --git a/webapp/src/Controller/API/GeneralInfoController.php b/webapp/src/Controller/API/GeneralInfoController.php index 7aa0be7d14..dc40959474 100644 --- a/webapp/src/Controller/API/GeneralInfoController.php +++ b/webapp/src/Controller/API/GeneralInfoController.php @@ -7,7 +7,6 @@ use App\DataTransferObject\ApiVersion; use App\DataTransferObject\DomJudgeApiInfo; use App\DataTransferObject\ExtendedContestStatus; -use App\Entity\Contest; use App\Entity\User; use App\Service\CheckConfigService; use App\Service\ConfigurationService; @@ -17,7 +16,6 @@ use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\NoResultException; -use Exception; use FOS\RestBundle\Controller\AbstractFOSRestController; use FOS\RestBundle\Controller\Annotations as Rest; use InvalidArgumentException; @@ -25,15 +23,15 @@ use Nelmio\ApiDocBundle\Annotation\Model; use OpenApi\Attributes as OA; use Psr\Log\LoggerInterface; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\Intl\Countries; use Symfony\Component\Routing\RouterInterface; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[OA\Tag(name: 'General')] #[OA\Parameter(ref: '#/components/parameters/strict')] diff --git a/webapp/src/Controller/API/GroupController.php b/webapp/src/Controller/API/GroupController.php index 40c0ec23b6..615321729e 100644 --- a/webapp/src/Controller/API/GroupController.php +++ b/webapp/src/Controller/API/GroupController.php @@ -11,11 +11,11 @@ use FOS\RestBundle\Controller\Annotations as Rest; use Nelmio\ApiDocBundle\Annotation\Model; use OpenApi\Attributes as OA; -use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; +use Symfony\Component\Security\Http\Attribute\IsGranted; /** * @extends AbstractRestController diff --git a/webapp/src/Controller/API/JudgehostController.php b/webapp/src/Controller/API/JudgehostController.php index b118a2e39a..8cfa36c80a 100644 --- a/webapp/src/Controller/API/JudgehostController.php +++ b/webapp/src/Controller/API/JudgehostController.php @@ -30,14 +30,14 @@ use App\Utils\Utils; use BadMethodCallException; use Doctrine\DBAL\ArrayParameterType; -use Doctrine\DBAL\Exception as DBALException; use Doctrine\DBAL\Exception; +use Doctrine\DBAL\Exception as DBALException; use Doctrine\ORM\AbstractQuery; use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface; +use Doctrine\ORM\Exception\ORMException; use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\NoResultException; -use Doctrine\ORM\Exception\ORMException; use Doctrine\ORM\Query; use Doctrine\ORM\Query\Expr\Join; use FOS\RestBundle\Controller\AbstractFOSRestController; @@ -46,12 +46,12 @@ use OpenApi\Attributes as OA; use Psr\Log\LoggerInterface; use Symfony\Component\ExpressionLanguage\Expression; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\HttpKernel\Exception\HttpException; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; +use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[Rest\Route('/judgehosts')] #[OA\Tag(name: 'Judgehosts')] diff --git a/webapp/src/Controller/API/JudgementTypeController.php b/webapp/src/Controller/API/JudgementTypeController.php index fe8588c733..a20a3fd350 100644 --- a/webapp/src/Controller/API/JudgementTypeController.php +++ b/webapp/src/Controller/API/JudgementTypeController.php @@ -4,8 +4,6 @@ use App\DataTransferObject\JudgementType; use Doctrine\ORM\NonUniqueResultException; -use Doctrine\ORM\QueryBuilder; -use Exception; use FOS\RestBundle\Controller\Annotations as Rest; use Nelmio\ApiDocBundle\Annotation\Model; use OpenApi\Attributes as OA; diff --git a/webapp/src/Controller/API/MetricsController.php b/webapp/src/Controller/API/MetricsController.php index c3092f9633..215dea73bb 100644 --- a/webapp/src/Controller/API/MetricsController.php +++ b/webapp/src/Controller/API/MetricsController.php @@ -3,24 +3,23 @@ namespace App\Controller\API; use App\DataTransferObject\SubmissionRestriction; -use App\Entity\Submission; -use App\Service\DOMJudgeService; -use App\Service\SubmissionService; use App\Entity\Balloon; use App\Entity\QueueTask; +use App\Entity\Submission; use App\Entity\Team; use App\Entity\User; +use App\Service\DOMJudgeService; +use App\Service\SubmissionService; use App\Utils\Utils; use Doctrine\ORM\EntityManagerInterface; use FOS\RestBundle\Controller\AbstractFOSRestController; use FOS\RestBundle\Controller\Annotations as Rest; -use Symfony\Component\Security\Http\Attribute\IsGranted; use OpenApi\Attributes as OA; -use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Attribute\Route; - use Prometheus\CollectorRegistry; use Prometheus\RenderTextFormat; +use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_API_READER')] #[Route(path: '/metrics')] diff --git a/webapp/src/Controller/API/OrganizationController.php b/webapp/src/Controller/API/OrganizationController.php index 68137d99a1..f1890d50f6 100644 --- a/webapp/src/Controller/API/OrganizationController.php +++ b/webapp/src/Controller/API/OrganizationController.php @@ -15,14 +15,14 @@ use FOS\RestBundle\Controller\Annotations as Rest; use Nelmio\ApiDocBundle\Annotation\Model; use OpenApi\Attributes as OA; -use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\Validator\Validator\ValidatorInterface; /** diff --git a/webapp/src/Controller/API/SubmissionController.php b/webapp/src/Controller/API/SubmissionController.php index 292efdf234..79cfa38626 100644 --- a/webapp/src/Controller/API/SubmissionController.php +++ b/webapp/src/Controller/API/SubmissionController.php @@ -7,7 +7,6 @@ use App\Entity\Contest; use App\Entity\ContestProblem; use App\Entity\Language; -use App\Entity\Problem; use App\Entity\Submission; use App\Entity\SubmissionFile; use App\Entity\Team; @@ -25,14 +24,14 @@ use Nelmio\ApiDocBundle\Annotation\Model; use OpenApi\Attributes as OA; use Symfony\Component\ExpressionLanguage\Expression; -use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException; +use Symfony\Component\Security\Http\Attribute\IsGranted; /** * @extends AbstractRestController diff --git a/webapp/src/Controller/API/TeamController.php b/webapp/src/Controller/API/TeamController.php index ee7fb2c5e3..1dda656c65 100644 --- a/webapp/src/Controller/API/TeamController.php +++ b/webapp/src/Controller/API/TeamController.php @@ -16,14 +16,14 @@ use FOS\RestBundle\Controller\Annotations as Rest; use Nelmio\ApiDocBundle\Annotation\Model; use OpenApi\Attributes as OA; -use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\Validator\Validator\ValidatorInterface; /** diff --git a/webapp/src/Controller/API/UserController.php b/webapp/src/Controller/API/UserController.php index 00d89a4dbb..2a560604a8 100644 --- a/webapp/src/Controller/API/UserController.php +++ b/webapp/src/Controller/API/UserController.php @@ -18,12 +18,12 @@ use Nelmio\ApiDocBundle\Annotation\Model; use OpenApi\Attributes as OA; use Symfony\Component\ExpressionLanguage\Expression; -use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapRequestPayload; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; +use Symfony\Component\Security\Http\Attribute\IsGranted; /** * @extends AbstractRestController diff --git a/webapp/src/Controller/Jury/AnalysisController.php b/webapp/src/Controller/Jury/AnalysisController.php index 932f66757d..b0ca2924d2 100644 --- a/webapp/src/Controller/Jury/AnalysisController.php +++ b/webapp/src/Controller/Jury/AnalysisController.php @@ -11,11 +11,11 @@ use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Query\Expr; use Symfony\Bridge\Doctrine\Attribute\MapEntity; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_JURY')] #[Route(path: '/jury/analysis')] diff --git a/webapp/src/Controller/Jury/AuditLogController.php b/webapp/src/Controller/Jury/AuditLogController.php index a7adecf228..0187aceb9b 100644 --- a/webapp/src/Controller/Jury/AuditLogController.php +++ b/webapp/src/Controller/Jury/AuditLogController.php @@ -11,11 +11,11 @@ use App\Utils\Utils; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Tools\Pagination\Paginator; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_ADMIN')] #[Route(path: '/jury/auditlog')] diff --git a/webapp/src/Controller/Jury/ClarificationController.php b/webapp/src/Controller/Jury/ClarificationController.php index 6ec9782859..a31a3000ee 100644 --- a/webapp/src/Controller/Jury/ClarificationController.php +++ b/webapp/src/Controller/Jury/ClarificationController.php @@ -4,7 +4,6 @@ use App\Entity\Clarification; use App\Entity\Contest; -use App\Entity\ContestProblem; use App\Entity\Problem; use App\Entity\Team; use App\Entity\User; @@ -15,14 +14,14 @@ use App\Utils\Utils; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Query\Expr\Join; -use Symfony\Component\Form\FormInterface; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; +use Symfony\Component\Form\FormInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_CLARIFICATION_RW')] #[Route(path: '/jury/clarifications')] diff --git a/webapp/src/Controller/Jury/ConfigController.php b/webapp/src/Controller/Jury/ConfigController.php index fca7890b51..62000942df 100644 --- a/webapp/src/Controller/Jury/ConfigController.php +++ b/webapp/src/Controller/Jury/ConfigController.php @@ -11,13 +11,13 @@ use App\Utils\Utils; use Doctrine\ORM\EntityManagerInterface; use Psr\Log\LoggerInterface; +use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\DependencyInjection\Attribute\Autowire; use Symfony\Component\HttpFoundation\BinaryFileResponse; -use Symfony\Component\Security\Http\Attribute\IsGranted; -use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_ADMIN')] #[Route(path: '/jury/config')] diff --git a/webapp/src/Controller/Jury/ContestController.php b/webapp/src/Controller/Jury/ContestController.php index 0fb4637a84..a43db7aaaa 100644 --- a/webapp/src/Controller/Jury/ContestController.php +++ b/webapp/src/Controller/Jury/ContestController.php @@ -38,7 +38,6 @@ use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; -use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\KernelInterface; diff --git a/webapp/src/Controller/Jury/ExecutableController.php b/webapp/src/Controller/Jury/ExecutableController.php index b49ef5e184..b3c2913a47 100644 --- a/webapp/src/Controller/Jury/ExecutableController.php +++ b/webapp/src/Controller/Jury/ExecutableController.php @@ -14,8 +14,6 @@ use App\Utils\Utils; use Doctrine\ORM\EntityManagerInterface; use InvalidArgumentException as PHPInvalidArgumentException; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\Form\Exception\InvalidArgumentException; use Symfony\Component\Form\Extension\Core\Type\FileType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; @@ -24,10 +22,12 @@ use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_JURY')] #[Route(path: '/jury/executables')] diff --git a/webapp/src/Controller/Jury/ExternalContestController.php b/webapp/src/Controller/Jury/ExternalContestController.php index d96759cc54..4fe4a3c5e1 100644 --- a/webapp/src/Controller/Jury/ExternalContestController.php +++ b/webapp/src/Controller/Jury/ExternalContestController.php @@ -13,12 +13,12 @@ use App\Service\ExternalContestSourceService; use App\Utils\Utils; use Doctrine\ORM\EntityManagerInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_ADMIN')] #[Route(path: '/jury/external-contest')] diff --git a/webapp/src/Controller/Jury/ImportExportController.php b/webapp/src/Controller/Jury/ImportExportController.php index f8c28b07a1..1effc3b10c 100644 --- a/webapp/src/Controller/Jury/ImportExportController.php +++ b/webapp/src/Controller/Jury/ImportExportController.php @@ -3,7 +3,6 @@ namespace App\Controller\Jury; use App\Controller\BaseController; -use App\DataTransferObject\ResultRow; use App\Entity\Clarification; use App\Entity\Contest; use App\Entity\ContestProblem; @@ -31,15 +30,14 @@ use Exception; use Symfony\Component\DependencyInjection\Attribute\Autowire; use Symfony\Component\Form\SubmitButton; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; +use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\Yaml\Exception\ParseException; use Symfony\Component\Yaml\Yaml; use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface; diff --git a/webapp/src/Controller/Jury/InternalErrorController.php b/webapp/src/Controller/Jury/InternalErrorController.php index bfd3a3a585..ddb9ed840f 100644 --- a/webapp/src/Controller/Jury/InternalErrorController.php +++ b/webapp/src/Controller/Jury/InternalErrorController.php @@ -13,15 +13,15 @@ use App\Service\RejudgingService; use App\Utils\Utils; use Doctrine\ORM\EntityManagerInterface; -use Symfony\Component\HttpFoundation\RequestStack; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\HttpKernel\Profiler\Profiler; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_JURY')] #[Route(path: '/jury/internal-errors')] diff --git a/webapp/src/Controller/Jury/JudgehostController.php b/webapp/src/Controller/Jury/JudgehostController.php index eb23b44ee3..07b9ac365f 100644 --- a/webapp/src/Controller/Jury/JudgehostController.php +++ b/webapp/src/Controller/Jury/JudgehostController.php @@ -16,7 +16,6 @@ use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\NoResultException; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -25,6 +24,7 @@ use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Routing\RouterInterface; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_JURY')] #[Route(path: '/jury/judgehosts')] diff --git a/webapp/src/Controller/Jury/JuryMiscController.php b/webapp/src/Controller/Jury/JuryMiscController.php index 77ab13c849..aa076dbe74 100644 --- a/webapp/src/Controller/Jury/JuryMiscController.php +++ b/webapp/src/Controller/Jury/JuryMiscController.php @@ -19,18 +19,18 @@ use Doctrine\ORM\Query\Expr\Join; use Symfony\Component\DependencyInjection\Attribute\Autowire; use Symfony\Component\ExpressionLanguage\Expression; -use Symfony\Component\HttpFoundation\RequestStack; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Routing\RouterInterface; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[Route(path: '/jury')] class JuryMiscController extends BaseController diff --git a/webapp/src/Controller/Jury/QueueTaskController.php b/webapp/src/Controller/Jury/QueueTaskController.php index 39079654c2..b7e505df62 100644 --- a/webapp/src/Controller/Jury/QueueTaskController.php +++ b/webapp/src/Controller/Jury/QueueTaskController.php @@ -9,13 +9,13 @@ use App\Service\EventLogService; use App\Utils\Utils; use Doctrine\ORM\EntityManagerInterface; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; +use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_ADMIN')] #[Route(path: '/jury/queuetasks')] diff --git a/webapp/src/Controller/Jury/RejudgingController.php b/webapp/src/Controller/Jury/RejudgingController.php index 517a773d88..73f47292d4 100644 --- a/webapp/src/Controller/Jury/RejudgingController.php +++ b/webapp/src/Controller/Jury/RejudgingController.php @@ -26,19 +26,19 @@ use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\NoResultException; use Doctrine\ORM\Query\Expr\Join; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\Form\FormFactoryInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\HttpKernel\Profiler\Profiler; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Routing\RouterInterface; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_JURY')] #[Route(path: '/jury/rejudgings')] diff --git a/webapp/src/Controller/Jury/ShadowDifferencesController.php b/webapp/src/Controller/Jury/ShadowDifferencesController.php index bb31239040..f8e1e64128 100644 --- a/webapp/src/Controller/Jury/ShadowDifferencesController.php +++ b/webapp/src/Controller/Jury/ShadowDifferencesController.php @@ -2,27 +2,27 @@ namespace App\Controller\Jury; +use App\Controller\BaseController; use App\DataTransferObject\SubmissionRestriction; use App\Entity\ExternalContestSource; +use App\Entity\ExternalJudgement; +use App\Entity\Judging; +use App\Entity\Submission; use App\Service\ConfigurationService; +use App\Service\DOMJudgeService; use App\Service\EventLogService; +use App\Service\SubmissionService; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\NoResultException; use Doctrine\ORM\Query\Expr\Join; -use App\Controller\BaseController; -use App\Entity\ExternalJudgement; -use App\Entity\Judging; -use App\Entity\Submission; -use App\Service\DOMJudgeService; -use App\Service\SubmissionService; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; +use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_ADMIN')] #[Route(path: '/jury/shadow-differences')] diff --git a/webapp/src/Controller/Jury/TeamAffiliationController.php b/webapp/src/Controller/Jury/TeamAffiliationController.php index 23d68439c3..32760f8d3c 100644 --- a/webapp/src/Controller/Jury/TeamAffiliationController.php +++ b/webapp/src/Controller/Jury/TeamAffiliationController.php @@ -12,13 +12,13 @@ use App\Service\ScoreboardService; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\DependencyInjection\Attribute\Autowire; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_JURY')] #[Route(path: '/jury/affiliations')] diff --git a/webapp/src/Controller/Jury/TeamController.php b/webapp/src/Controller/Jury/TeamController.php index 08741779e2..8bbef797b7 100644 --- a/webapp/src/Controller/Jury/TeamController.php +++ b/webapp/src/Controller/Jury/TeamController.php @@ -17,15 +17,15 @@ use App\Service\SubmissionService; use App\Utils\Utils; use Doctrine\ORM\EntityManagerInterface; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_JURY')] #[Route(path: '/jury/teams')] diff --git a/webapp/src/Controller/Jury/UserController.php b/webapp/src/Controller/Jury/UserController.php index 21bb1edd6b..3000e5650f 100644 --- a/webapp/src/Controller/Jury/UserController.php +++ b/webapp/src/Controller/Jury/UserController.php @@ -16,18 +16,18 @@ use App\Service\SubmissionService; use App\Utils\Utils; use Doctrine\ORM\EntityManagerInterface; -use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\Form\FormInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\ResponseHeaderBag; +use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_JURY')] #[Route(path: '/jury/users')] diff --git a/webapp/src/Controller/RootController.php b/webapp/src/Controller/RootController.php index 16085edb6e..3766612ff8 100644 --- a/webapp/src/Controller/RootController.php +++ b/webapp/src/Controller/RootController.php @@ -2,16 +2,12 @@ namespace App\Controller; -use App\Service\DOMJudgeService; -use App\Service\EventLogService; -use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\DependencyInjection\Attribute\Autowire; use Symfony\Component\HtmlSanitizer\HtmlSanitizerInterface; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; -use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; use Twig\Extra\Markdown\MarkdownRuntime; diff --git a/webapp/src/Controller/Team/ClarificationController.php b/webapp/src/Controller/Team/ClarificationController.php index 35ef682ae9..8134a4e2bd 100644 --- a/webapp/src/Controller/Team/ClarificationController.php +++ b/webapp/src/Controller/Team/ClarificationController.php @@ -16,15 +16,15 @@ use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\Query\Expr\Join; use Symfony\Component\ExpressionLanguage\Expression; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\Form\FormFactoryInterface; use Symfony\Component\Form\FormInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_TEAM')] #[IsGranted( diff --git a/webapp/src/Controller/Team/MiscController.php b/webapp/src/Controller/Team/MiscController.php index 4c79f9df16..aae0630121 100644 --- a/webapp/src/Controller/Team/MiscController.php +++ b/webapp/src/Controller/Team/MiscController.php @@ -5,8 +5,6 @@ use App\Controller\BaseController; use App\DataTransferObject\SubmissionRestriction; use App\Entity\Clarification; -use App\Entity\Contest; -use App\Entity\ContestProblem; use App\Entity\Language; use App\Form\Type\PrintType; use App\Service\ConfigurationService; @@ -18,20 +16,19 @@ use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\NoResultException; use Symfony\Component\ExpressionLanguage\Expression; -use Symfony\Component\HttpFoundation\StreamedResponse; -use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\PropertyAccess\PropertyAccess; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\File\UploadedFile; +use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpFoundation\JsonResponse; +use Symfony\Component\HttpFoundation\StreamedResponse; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; +use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Symfony\Component\HttpKernel\KernelInterface; +use Symfony\Component\PropertyAccess\PropertyAccess; use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Routing\RouterInterface; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_TEAM')] #[IsGranted( diff --git a/webapp/src/Controller/Team/ProblemController.php b/webapp/src/Controller/Team/ProblemController.php index c8f3bd6b57..9374ee46b4 100644 --- a/webapp/src/Controller/Team/ProblemController.php +++ b/webapp/src/Controller/Team/ProblemController.php @@ -12,13 +12,13 @@ use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\NonUniqueResultException; use Symfony\Component\ExpressionLanguage\Expression; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_TEAM')] #[IsGranted( diff --git a/webapp/src/Controller/Team/ScoreboardController.php b/webapp/src/Controller/Team/ScoreboardController.php index add967a227..069e5db60c 100644 --- a/webapp/src/Controller/Team/ScoreboardController.php +++ b/webapp/src/Controller/Team/ScoreboardController.php @@ -10,12 +10,12 @@ use App\Service\ScoreboardService; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\ExpressionLanguage\Expression; -use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; +use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_TEAM')] #[IsGranted( diff --git a/webapp/src/Controller/Team/SubmissionController.php b/webapp/src/Controller/Team/SubmissionController.php index 89b8105a53..c26cffb046 100644 --- a/webapp/src/Controller/Team/SubmissionController.php +++ b/webapp/src/Controller/Team/SubmissionController.php @@ -17,14 +17,14 @@ use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\Query\Expr\Join; use Symfony\Component\ExpressionLanguage\Expression; -use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Component\Form\FormFactoryInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Routing\Attribute\Route; +use Symfony\Component\Security\Http\Attribute\IsGranted; #[IsGranted('ROLE_TEAM')] #[IsGranted( diff --git a/webapp/src/Entity/BaseApiEntity.php b/webapp/src/Entity/BaseApiEntity.php index 1ff4d4f4d3..fb72d7985d 100644 --- a/webapp/src/Entity/BaseApiEntity.php +++ b/webapp/src/Entity/BaseApiEntity.php @@ -2,8 +2,6 @@ namespace App\Entity; -use App\Service\EventLogService; - /** * Base entity class that entities should use to support getting their API ID. */ diff --git a/webapp/src/Entity/ContestProblem.php b/webapp/src/Entity/ContestProblem.php index 238d48e04d..1fadd43507 100644 --- a/webapp/src/Entity/ContestProblem.php +++ b/webapp/src/Entity/ContestProblem.php @@ -3,13 +3,11 @@ use App\Controller\API\AbstractRestController as ARC; use App\Service\DOMJudgeService as DJS; -use App\Service\EventLogService; use App\Utils\Utils; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation as Serializer; -use JMS\Serializer\Metadata\StaticPropertyMetadata; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Context\ExecutionContextInterface; diff --git a/webapp/src/Entity/Language.php b/webapp/src/Entity/Language.php index ef92d53afc..2b28f2de18 100644 --- a/webapp/src/Entity/Language.php +++ b/webapp/src/Entity/Language.php @@ -7,8 +7,8 @@ use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; -use OpenApi\Attributes as OA; use JMS\Serializer\Annotation as Serializer; +use OpenApi\Attributes as OA; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\Validator\Constraints as Assert; diff --git a/webapp/src/Entity/Problem.php b/webapp/src/Entity/Problem.php index 5b37346091..0d58aa6679 100644 --- a/webapp/src/Entity/Problem.php +++ b/webapp/src/Entity/Problem.php @@ -2,7 +2,6 @@ namespace App\Entity; -use App\Controller\API\AbstractRestController as ARC; use App\DataTransferObject\FileWithName; use App\Utils\Utils; use Doctrine\Common\Collections\ArrayCollection; diff --git a/webapp/src/Entity/Team.php b/webapp/src/Entity/Team.php index 717ec37eb0..d485103d6e 100644 --- a/webapp/src/Entity/Team.php +++ b/webapp/src/Entity/Team.php @@ -3,7 +3,6 @@ namespace App\Entity; use App\Controller\API\AbstractRestController as ARC; -use App\DataTransferObject\FileWithName; use App\DataTransferObject\ImageFile; use App\DataTransferObject\TeamLocation; use Doctrine\Common\Collections\ArrayCollection; diff --git a/webapp/src/Entity/User.php b/webapp/src/Entity/User.php index 65d80db812..20a54dcfdb 100644 --- a/webapp/src/Entity/User.php +++ b/webapp/src/Entity/User.php @@ -1,7 +1,6 @@ isXmlHttpRequest()) { $resp->headers->set('WWW-Authenticate', sprintf('Basic realm="%s"', 'Secured Area')); } - + return $resp; } diff --git a/webapp/src/Security/DOMJudgeIPAuthenticator.php b/webapp/src/Security/DOMJudgeIPAuthenticator.php index d2fd8ab12e..62ebb65e59 100644 --- a/webapp/src/Security/DOMJudgeIPAuthenticator.php +++ b/webapp/src/Security/DOMJudgeIPAuthenticator.php @@ -5,6 +5,7 @@ use App\Entity\User; use App\Service\ConfigurationService; use Doctrine\ORM\EntityManagerInterface; +use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; @@ -14,7 +15,6 @@ use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Core\Exception\InvalidCsrfTokenException; use Symfony\Component\Security\Core\Exception\UserNotFoundException; -use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\Security\Csrf\CsrfToken; use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface; use Symfony\Component\Security\Http\Authenticator\AbstractAuthenticator; diff --git a/webapp/src/Security/DOMJudgeXHeadersAuthenticator.php b/webapp/src/Security/DOMJudgeXHeadersAuthenticator.php index d8957ab7bb..bbf7a47053 100644 --- a/webapp/src/Security/DOMJudgeXHeadersAuthenticator.php +++ b/webapp/src/Security/DOMJudgeXHeadersAuthenticator.php @@ -3,6 +3,7 @@ namespace App\Security; use App\Service\ConfigurationService; +use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -10,7 +11,6 @@ use Symfony\Component\Routing\RouterInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; -use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\Security\Http\Authenticator\AbstractAuthenticator; use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; use Symfony\Component\Security\Http\Authenticator\Passport\Credentials\PasswordCredentials; diff --git a/webapp/src/Service/BalloonService.php b/webapp/src/Service/BalloonService.php index cf16a98484..ff93e2fddf 100644 --- a/webapp/src/Service/BalloonService.php +++ b/webapp/src/Service/BalloonService.php @@ -10,12 +10,11 @@ use App\Entity\ScoreCache; use App\Entity\Submission; use App\Entity\Team; -use App\Entity\TeamAffiliation; use Doctrine\DBAL\Exception\UniqueConstraintViolationException; use Doctrine\ORM\EntityManagerInterface; +use Doctrine\ORM\Exception\ORMException; use Doctrine\ORM\NonUniqueResultException; use Doctrine\ORM\NoResultException; -use Doctrine\ORM\Exception\ORMException; use Doctrine\ORM\Query\Expr\Join; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; diff --git a/webapp/src/Service/CheckConfigService.php b/webapp/src/Service/CheckConfigService.php index 4fa00537c2..46e36cf36b 100644 --- a/webapp/src/Service/CheckConfigService.php +++ b/webapp/src/Service/CheckConfigService.php @@ -3,7 +3,6 @@ namespace App\Service; use App\DataTransferObject\ConfigCheckItem; -use App\Entity\ContestProblem; use App\Entity\Executable; use App\Entity\HasExternalIdInterface; use App\Entity\Language; @@ -18,9 +17,9 @@ use Doctrine\Inflector\InflectorFactory; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\DependencyInjection\Attribute\Autowire; -use Symfony\Component\Stopwatch\Stopwatch; use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface; use Symfony\Component\Routing\RouterInterface; +use Symfony\Component\Stopwatch\Stopwatch; use Symfony\Component\Validator\Validator\ValidatorInterface; class CheckConfigService diff --git a/webapp/src/Service/EventLogService.php b/webapp/src/Service/EventLogService.php index b2f053858e..f059e09e5e 100644 --- a/webapp/src/Service/EventLogService.php +++ b/webapp/src/Service/EventLogService.php @@ -3,14 +3,12 @@ namespace App\Service; use App\Entity\BaseApiEntity; -use App\Entity\Clarification; use App\Entity\Contest; use App\Entity\ContestProblem; use App\Entity\Event; use App\Entity\HasExternalIdInterface; use App\Entity\Judging; use App\Entity\JudgingRun; -use App\Entity\Submission; use App\Entity\TeamAffiliation; use App\Entity\TeamCategory; use App\Entity\User; diff --git a/webapp/src/Twig/TwigExtension.php b/webapp/src/Twig/TwigExtension.php index d801f58f49..2a73e324e4 100644 --- a/webapp/src/Twig/TwigExtension.php +++ b/webapp/src/Twig/TwigExtension.php @@ -15,8 +15,8 @@ use App\Entity\Problem; use App\Entity\Submission; use App\Entity\SubmissionFile; -use App\Entity\TeamCategory; use App\Entity\Team; +use App\Entity\TeamCategory; use App\Entity\Testcase; use App\Service\AwardService; use App\Service\ConfigurationService;