From e3157ca90bf266c3cb4736e1795fe0878e30f5e8 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Thu, 5 Sep 2024 14:48:43 +0200 Subject: [PATCH] Fixed CI --- src/Controller/DataController.php | 2 +- src/Controller/ImportController.php | 2 +- src/Controller/ReportController.php | 2 +- src/Repository/ExecutionRepository.php | 4 ++-- src/Service/AbstractReportImporter.php | 2 +- src/Service/ReportMochaImporter.php | 4 ++-- src/Service/ReportPlaywrightImporter.php | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Controller/DataController.php b/src/Controller/DataController.php index aaa1b819..5b3811aa 100644 --- a/src/Controller/DataController.php +++ b/src/Controller/DataController.php @@ -74,7 +74,7 @@ public function badgeSvg(Request $request): Response */ private function getBadgeData( Request $request, - bool $hexColor + bool $hexColor, ): ?array { $branch = (string) $request->query->get('branch', 'develop'); $date = $request->query->get('date'); diff --git a/src/Controller/ImportController.php b/src/Controller/ImportController.php index 6468078a..58c42b0e 100644 --- a/src/Controller/ImportController.php +++ b/src/Controller/ImportController.php @@ -43,7 +43,7 @@ public function __construct( ReportMochaImporter $reportMochaImporter, ReportPlaywrightImporter $reportPlaywrightImporter, string $nightlyToken, - string $nightlyReportPath + string $nightlyReportPath, ) { $this->executionRepository = $executionRepository; $this->reportMochaImporter = $reportMochaImporter; diff --git a/src/Controller/ReportController.php b/src/Controller/ReportController.php index dfa903fb..5cfbc46f 100644 --- a/src/Controller/ReportController.php +++ b/src/Controller/ReportController.php @@ -25,7 +25,7 @@ public function __construct( ExecutionRepository $executionRepository, ReportLister $reportLister, ReportSuiteBuilder $reportSuiteBuilder, - string $nightlyReportPath + string $nightlyReportPath, ) { $this->executionRepository = $executionRepository; $this->reportLister = $reportLister; diff --git a/src/Repository/ExecutionRepository.php b/src/Repository/ExecutionRepository.php index a05c6209..7c91cc41 100644 --- a/src/Repository/ExecutionRepository.php +++ b/src/Repository/ExecutionRepository.php @@ -26,7 +26,7 @@ public function findOneByNightly( string $platform, string $campaign, string $database, - string $date + string $date, ): ?Execution { $qb = $this->createQueryBuilder('e') ->andWhere('e.version = :version') @@ -51,7 +51,7 @@ public function findOneByNightlyBefore( string $platform, string $campaign, string $database, - \DateTimeInterface $dateUntil + \DateTimeInterface $dateUntil, ): ?Execution { $qb = $this->createQueryBuilder('e') ->andWhere('e.version = :version') diff --git a/src/Service/AbstractReportImporter.php b/src/Service/AbstractReportImporter.php index c4fb95dd..68d35b44 100644 --- a/src/Service/AbstractReportImporter.php +++ b/src/Service/AbstractReportImporter.php @@ -15,7 +15,7 @@ abstract public function import( string $campaign, string $version, \DateTime $startDate, - \stdClass $jsonContent + \stdClass $jsonContent, ): Execution; public const FILTER_PLATFORMS = ['chromium', 'firefox', 'webkit', 'cli']; diff --git a/src/Service/ReportMochaImporter.php b/src/Service/ReportMochaImporter.php index 82fa010e..9ce08a60 100644 --- a/src/Service/ReportMochaImporter.php +++ b/src/Service/ReportMochaImporter.php @@ -18,7 +18,7 @@ class ReportMochaImporter extends AbstractReportImporter public function __construct( EntityManagerInterface $entityManager, ExecutionRepository $executionRepository, - TestRepository $testRepository + TestRepository $testRepository, ) { parent::__construct($executionRepository, $testRepository); $this->entityManager = $entityManager; @@ -31,7 +31,7 @@ public function import( string $campaign, string $version, \DateTime $startDate, - \stdClass $jsonContent + \stdClass $jsonContent, ): Execution { $execution = new Execution(); $execution diff --git a/src/Service/ReportPlaywrightImporter.php b/src/Service/ReportPlaywrightImporter.php index 55a1dc25..2aa286a9 100644 --- a/src/Service/ReportPlaywrightImporter.php +++ b/src/Service/ReportPlaywrightImporter.php @@ -22,7 +22,7 @@ class ReportPlaywrightImporter extends AbstractReportImporter public function __construct( EntityManagerInterface $entityManager, ExecutionRepository $executionRepository, - TestRepository $testRepository + TestRepository $testRepository, ) { parent::__construct($executionRepository, $testRepository); $this->entityManager = $entityManager; @@ -35,7 +35,7 @@ public function import( string $campaign, string $version, \DateTime $startDate, - \stdClass $jsonContent + \stdClass $jsonContent, ): Execution { $endDate = clone $startDate; $endDate->modify('+ ' . (int) $jsonContent->stats->duration . ' milliseconds');