• R/O
  • SSH
  • HTTPS

jinrousiki: コミット


コミットメタ情報

リビジョン2336 (tree)
日時2019-10-07 00:23:39
作者umethyl

ログメッセージ

isset() 調整

変更サマリ

差分

--- trunk/dev/image/include/message_image_builder.php (revision 2335)
+++ trunk/dev/image/include/message_image_builder.php (revision 2336)
@@ -51,7 +51,7 @@
5151 }
5252
5353 public function LoadDelimiter($delimiter, $colors) {
54- if (! is_array($colors)) {
54+ if (false === is_array($colors)) {
5555 $colors = $this->color_list[$colors];
5656 }
5757 return new Delimiter($delimiter, $colors['R'], $colors['G'], $colors['B']);
@@ -67,7 +67,7 @@
6767 if (isset($list['type'])) {
6868 $this->SetDelimiter($this->list->{$list['type']});
6969 }
70- if (! isset($list['delimiter'])) {
70+ if (false === isset($list['delimiter'])) {
7171 $list['delimiter'] = array();
7272 }
7373 $this->AddDelimiter($list);
--- trunk/dev/test/data/vote_talk.php (revision 2335)
+++ trunk/dev/test/data/vote_talk.php (revision 2336)
@@ -74,7 +74,7 @@
7474 case RoomScene::NIGHT:
7575 $stack = self::${DB::$ROOM->scene};
7676 foreach ($stack as &$list) {
77- if (! isset($list['location'])) {
77+ if (false === isset($list['location'])) {
7878 if ($list['uname'] == GM::SYSTEM) {
7979 $list['location'] = TalkLocation::SYSTEM;
8080 } else {
--- trunk/include/controller/test/step_vote_test_class.php (revision 2335)
+++ trunk/include/controller/test/step_vote_test_class.php (revision 2336)
@@ -34,7 +34,7 @@
3434 #DB::$USER->ByID(9)->live = UserLive::LIVE;
3535 DB::LoadSelf(18);
3636 foreach (DB::$USER->Get() as $user) {
37- if (! isset($user->target_no)) {
37+ if (false === isset($user->target_no)) {
3838 $user->target_no = 0;
3939 }
4040 }
--- trunk/include/controller/test/vote_test_class.php (revision 2335)
+++ trunk/include/controller/test/vote_test_class.php (revision 2336)
@@ -45,7 +45,7 @@
4545 DB::$USER->SetEvent(); //天候テスト用
4646 include('data/vote_self.php');
4747 foreach (DB::$USER->Get() as $user) {
48- if (! isset($user->target_no)) {
48+ if (false === isset($user->target_no)) {
4949 $user->target_no = 0;
5050 }
5151
--- trunk/include/game_vote_functions.php (revision 2335)
+++ trunk/include/game_vote_functions.php (revision 2336)
@@ -1506,7 +1506,9 @@
15061506 private static function SaveEvent() {
15071507 $stack = RoleManager::Stack()->Get('event');
15081508 //Text::p($stack, '◆Event');
1509- if (! isset($stack)) return;
1509+ if (false === isset($stack)) {
1510+ return;
1511+ }
15101512
15111513 $wolf_target = RoleManager::Stack()->Get('wolf_target');
15121514 foreach (array_unique($stack) as $event) {
--- trunk/include/html/game_html_class.php (revision 2335)
+++ trunk/include/html/game_html_class.php (revision 2336)
@@ -383,7 +383,7 @@
383383 //投票結果表示は再投票のみ
384384 if (! DB::$ROOM->IsDay() || DB::$ROOM->revote_count < 1) return false;
385385
386- if (! isset(DB::$SELF->target_no)) { //投票済みチェック
386+ if (false === isset(DB::$SELF->target_no)) { //投票済みチェック
387387 $format = HTML::GenerateDiv(GameMessage::REVOTE, 'revote');
388388 printf($format . Text::BRLF, GameConfig::DRAW);
389389 }
--- trunk/include/option/option_class.php (revision 2335)
+++ trunk/include/option/option_class.php (revision 2336)
@@ -133,10 +133,10 @@
133133 $enable = sprintf('%s_enable', $this->name);
134134 $default = sprintf('default_%s', $this->name);
135135 $this->enable = isset(GameOptionConfig::$$enable) ? GameOptionConfig::$$enable : true;
136- if (! isset($this->form_name)) {
136+ if (false === isset($this->form_name)) {
137137 $this->form_name = $this->name;
138138 }
139- if (! isset($this->form_value)) {
139+ if (false === isset($this->form_value)) {
140140 $this->form_value = $this->value;
141141 }
142142
@@ -329,7 +329,7 @@
329329
330330 //個別データ取得
331331 public function GetItem() {
332- if (! isset($this->item_list)) {
332+ if (false === isset($this->item_list)) {
333333 $this->item_list = [];
334334 $stack = is_array($this->conf_name) ? $this->conf_name : GameOptionConfig::${$this->source};
335335 if (isset($stack)) {
--- trunk/include/option/option_form_class.php (revision 2335)
+++ trunk/include/option/option_form_class.php (revision 2336)
@@ -45,7 +45,7 @@
4545 //フォーム出力 (振り分け処理用)
4646 private static function OutputForm($name, $class) {
4747 $filter = OptionLoader::Load($name);
48- if (! $filter->enable || ! isset($filter->type)) return;
48+ if (! $filter->enable || false === isset($filter->type)) return;
4949
5050 switch ($filter->type) {
5151 case OptionFormType::TEXT:
--- trunk/include/room_class.php (revision 2335)
+++ trunk/include/room_class.php (revision 2336)
@@ -35,7 +35,7 @@
3535 //-- データ取得関連 --//
3636 //勝敗情報を DB から取得
3737 public function LoadWinner() {
38- if (! isset($this->winner)) { //未設定ならキャッシュする
38+ if (false === isset($this->winner)) { //未設定ならキャッシュする
3939 $this->winner = $this->IsTest() ? RQ::GetTest()->winner : RoomDB::Get('winner');
4040 }
4141 return $this->winner;
旧リポジトリブラウザで表示