Skip to content

Commit bc7cf16

Browse files
committed
refactor: rename variable from $storage to $saver
1 parent 07d8ee1 commit bc7cf16

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scraper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
// 出走表データを JSON ファイルとして保存
3535
// 日付付きの JSON ファイルとして保存(例: docs/{version}/YYYY/YYYYMMDD.json)
3636
// 最新データとして today.json にも保存
37-
$storage = new ProgramSaver();
38-
$storage->save($programs, "docs/{$version}/" . $date->format('Y') . '/' . $date->format('Ymd') . '.json');
39-
$storage->save($programs, "docs/{$version}/today.json");
37+
$saver = new ProgramSaver();
38+
$saver->save($programs, "docs/{$version}/" . $date->format('Y') . '/' . $date->format('Ymd') . '.json');
39+
$saver->save($programs, "docs/{$version}/today.json");

tests/ProgramSaverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function tearDown(): void
5959
*/
6060
public function testSave(): void
6161
{
62-
$storage = new ProgramSaver();
62+
$saver = new ProgramSaver();
6363
$path = $this->tempDir . '/programs.json';
6464

6565
$programs = [
@@ -102,7 +102,7 @@ public function testSave(): void
102102
],
103103
];
104104

105-
$storage->save($programs, $path);
105+
$saver->save($programs, $path);
106106

107107
$this->assertFileExists($path);
108108

0 commit comments

Comments
 (0)