Skip to content

Commit

Permalink
Based on dump
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Feb 3, 2024
1 parent 501f681 commit dcfd09e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ parameters:
count: 1
path: webapp/src/Controller/Jury/ClarificationController.php

-
message: "#^Method App\\\\Controller\\\\Jury\\\\RejudgingController\\:\\:getStats\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: webapp/src/Controller/Jury/RejudgingController.php

-
message: "#^Method App\\\\Controller\\\\Jury\\\\SubmissionController\\:\\:determineFileChanged\\(\\) has parameter \\$files with no value type specified in iterable type array\\.$#"
count: 1
Expand Down
12 changes: 12 additions & 0 deletions webapp/src/Controller/Jury/RejudgingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,18 @@ private function generateFlashMessagesForSkippedJudgings(array $skipped): void
}
}

/**
* @return array{'judging_runs_differ': int[], 'judging_runs_differ_overflow': int,
* 'runtime_spread': array<array{'submitid': int, 'rank': int,
* 'spread': float, 'count': int,
* 'verdict': string}>,
* 'judgehost_stats': array<string, array{'judgehost': string, 'njudged': int,
* 'avgrun': float, 'stddev': float,
* 'avgduration': float}>,
* 'judgings': array<array{'rejudgingid': int, 'judgingid': int, 'submitid': int,
* 'hostname': string, 'result': string, 'runtime_avg': float|null,
* 'ntestcases': int, 'duration': float}>}
*/
private function getStats(Rejudging $rejudging): array
{
$judgings = $this->em->createQueryBuilder()
Expand Down

0 comments on commit dcfd09e

Please sign in to comment.