Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Dec 19, 2024
1 parent 9c6d701 commit 261c0e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Storage/FileStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function read(string $type, ?string $id = null): array
{
clearstatcache();

$dataFiles = $this->findFilesOrderByModifiedTime(
$dataFiles = $this->findFilesOrderedByModifiedTime(
sprintf(
'%s/**/%s/%s.json',
$this->path,
Expand Down Expand Up @@ -121,7 +121,7 @@ private function collectSummaryData(): array
*/
private function gc(): void
{
$summaryFiles = $this->findFilesOrderByModifiedTime($this->path . '/**/**/summary.json');
$summaryFiles = $this->findFilesOrderedByModifiedTime($this->path . '/**/**/summary.json');
if (empty($summaryFiles) || count($summaryFiles) <= $this->historySize) {
return;
}
Expand All @@ -146,7 +146,7 @@ private function gc(): void
/**
* @return string[]
*/
private function findFilesOrderByModifiedTime(string $pattern): array
private function findFilesOrderedByModifiedTime(string $pattern): array
{
$files = glob($pattern, GLOB_NOSORT);
if ($files === false) {
Expand Down

0 comments on commit 261c0e7

Please sign in to comment.