Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Sep 5, 2024
1 parent e7d8805 commit e3157ca
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Controller/DataController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ImportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(
ReportMochaImporter $reportMochaImporter,
ReportPlaywrightImporter $reportPlaywrightImporter,
string $nightlyToken,
string $nightlyReportPath
string $nightlyReportPath,
) {
$this->executionRepository = $executionRepository;
$this->reportMochaImporter = $reportMochaImporter;
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(
ExecutionRepository $executionRepository,
ReportLister $reportLister,
ReportSuiteBuilder $reportSuiteBuilder,
string $nightlyReportPath
string $nightlyReportPath,
) {
$this->executionRepository = $executionRepository;
$this->reportLister = $reportLister;
Expand Down
4 changes: 2 additions & 2 deletions src/Repository/ExecutionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion src/Service/AbstractReportImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
4 changes: 2 additions & 2 deletions src/Service/ReportMochaImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -31,7 +31,7 @@ public function import(
string $campaign,
string $version,
\DateTime $startDate,
\stdClass $jsonContent
\stdClass $jsonContent,
): Execution {
$execution = new Execution();
$execution
Expand Down
4 changes: 2 additions & 2 deletions src/Service/ReportPlaywrightImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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');
Expand Down

0 comments on commit e3157ca

Please sign in to comment.