File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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 " );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments