We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -5,8 +5,9 @@ discard block |
||
5 | 5 | require_once(ENGINE . 'Default/help.inc'); |
6 | 6 | |
7 | 7 | $topic_id = $_SERVER['QUERY_STRING']; |
8 | - if (empty($topic_id) || !is_numeric($topic_id)) |
|
9 | - $topic_id = 1; |
|
8 | + if (empty($topic_id) || !is_numeric($topic_id)) { |
|
9 | + $topic_id = 1; |
|
10 | + } |
|
10 | 11 | ?> |
11 | 12 | <!DOCTYPE html> |
12 | 13 | |
@@ -48,8 +49,7 @@ discard block |
||
48 | 49 | |
49 | 50 | </body> |
50 | 51 | </html><?php |
51 | -} |
|
52 | -catch (Throwable $e) { |
|
52 | +} catch (Throwable $e) { |
|
53 | 53 | handleException($e); |
54 | 54 | } |
55 | 55 | ?> |
@@ -20,7 +20,9 @@ |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | public static function cmpNum($a, $b) { |
23 | - if ($a == $b) return 0; |
|
23 | + if ($a == $b) { |
|
24 | + return 0; |
|
25 | + } |
|
24 | 26 | return (self::$reverseOrder ? -1 : 1) * ($a < $b ? -1 : 1); |
25 | 27 | } |
26 | 28 |
@@ -469,8 +469,9 @@ |
||
469 | 469 | |
470 | 470 | if (!$player->isDead() && $player->getNewbieTurns() <= NEWBIE_TURNS_WARNING_LIMIT && |
471 | 471 | $player->getNewbieWarning() && |
472 | - $var['url'] != 'newbie_warning_processing.php') |
|
473 | - forward(create_container('newbie_warning_processing.php')); |
|
472 | + $var['url'] != 'newbie_warning_processing.php') { |
|
473 | + forward(create_container('newbie_warning_processing.php')); |
|
474 | + } |
|
474 | 475 | } |
475 | 476 | |
476 | 477 | // Initialize the template |
@@ -53,8 +53,9 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | public function setAllianceID($ID) { |
56 | - if($this->allianceID == $ID) |
|
57 | - return; |
|
56 | + if($this->allianceID == $ID) { |
|
57 | + return; |
|
58 | + } |
|
58 | 59 | $this->allianceID=$ID; |
59 | 60 | } |
60 | 61 | |
@@ -93,8 +94,7 @@ discard block |
||
93 | 94 | if($db->nextRecord()) { |
94 | 95 | $return = unserialize($db->getField('info')); |
95 | 96 | return $return; |
96 | - } |
|
97 | - else { |
|
97 | + } else { |
|
98 | 98 | $return = new DummyPlayer(); |
99 | 99 | return $return; |
100 | 100 | } |