大文字

守矢諏訪子 <suwako@076.moe>、2026-11-10 16:57
コミット ce7caf8285ec952448ca2555281d0dee5d93c038 ・親 db6dc6f ・ファイルを見る

1個のファイル、+5 -5

@@ -115,7 +115,7 @@
115115
116116 $verify = $this->verifyLogin($username, $password);
117117 if (!$verify->isSuccess) {
118- return Result::error($verify->message);
118+ return Result::Error($verify->message);
119119 }
120120
121121 $ip = $_SERVER['REMOTE_ADDR'];
@@ -140,7 +140,7 @@
140140
141141 if (file_put_contents($path, $json) === false) {
142142 logger(LogType::Auth, '【setToken】JSONファイルにユーザーデータを保存出来なかった。パス:'.$path);
143- return Result::error('エラー:ユーザーデータの保存に失敗。');
143+ return Result::Error('エラー:ユーザーデータの保存に失敗。');
144144 }
145145
146146 if (!setcookie('kerozen', $token, [
@@ -152,10 +152,10 @@
152152 'samesite' => 'Strict'
153153 ])) {
154154 logger(LogType::Auth, '【setToken】クッキーを設定出来なかった。');
155- return Result::error('エラー:クッキーを設定に失敗。');
155+ return Result::Error('エラー:クッキーを設定に失敗。');
156156 }
157157
158- return Result::success('ログイン成功');
158+ return Result::Success('ログイン成功');
159159 }
160160
161161 public function getToken(): ?string {
@@ -194,7 +194,7 @@
194194 'samesite' => 'Strict'
195195 ]);
196196
197- return Result::success();
197+ return Result::Success();
198198 }
199199
200200 /**