• R/O
  • SSH
  • HTTPS

jinrousiki: コミット


コミットメタ情報

リビジョン2107 (tree)
日時2018-01-03 20:49:28
作者umethyl

ログメッセージ

GamePlay::OutputHeaderSwitchLink(): func_get_args() 廃止

変更サマリ

差分

--- trunk/include/controller/game_play_class.php (revision 2106)
+++ trunk/include/controller/game_play_class.php (revision 2107)
@@ -356,10 +356,10 @@
356356 }
357357
358358 //ヘッダーリンク出力 (スイッチ型)
359- final protected function OutputHeaderSwitchLink($type) {
360- foreach (func_get_args() as $type) {
359+ final protected function OutputHeaderSwitchLink(...$type_list) {
360+ foreach ($type_list as $type) {
361361 $url = $this->GetURL([$type]);
362- if ($type == RequestDataGame::DOWN) {
362+ if (RequestDataGame::DOWN == $type) {
363363 GamePlayHTML::OutputHeaderListLink($url, $type);
364364 } else {
365365 GamePlayHTML::OutputHeaderSwitchLink($url, $type);
旧リポジトリブラウザで表示