Skip to content

Commit

Permalink
rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CamillH committed Feb 7, 2024
1 parent 73156ee commit ae9ad56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Classes/Service/ConfigService.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ final class ConfigService
{
/** @var int */
private const DEFAULT_STOP_WATCH_LIMIT = 100_000;

/**
* @var int
*/
private const DEFAULT_DESCRIPTION_LENGTH = 100;

/**
* @var int
*/
private const DEFAULT_NUMBER_TIMINGS = 70;

public function stopWatchLimit(): int
Expand Down
1 change: 1 addition & 0 deletions Classes/Utility/TimingUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public function shutdown(ScriptResult $result): ?ResponseInterface
$duration = $time->getDuration();
$timings[$duration . $index] = $this->timingString($index, trim($time->key . ' ' . $time->info . ' ' . $duration), $duration);
}

krsort($timings);
$timings = array_slice($timings, 0, $this->configService->getMaxNumberOfTimings());

Expand Down

0 comments on commit ae9ad56

Please sign in to comment.