Skip to content

Commit

Permalink
Added the random string generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Nov 20, 2024
1 parent 392b83b commit e72c2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/ClientService.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ private function createJsonFileWithDataContent($path, array $data): void
);
}

$filename = $path . date('YmdHisU') . '.json';
$filename = $path . date('YmdHis') . random_int(10000, 100000) . '.json';

file_put_contents($filename, json_encode($data, JSON_THROW_ON_ERROR));
}
Expand Down

0 comments on commit e72c2b9

Please sign in to comment.