We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -10,7 +10,10 @@ |
||
| 10 | 10 | <td style="width: 80%" class="center"> |
| 11 | 11 | Local Map of the Known <span class="big bold"><?php echo $GalaxyName ?></span> Galaxy |
| 12 | 12 | <br /><br /> |
| 13 | - <?php if (isset($Error)) echo $Error; ?> |
|
| 13 | + <?php if (isset($Error)) { |
|
| 14 | + echo $Error; |
|
| 15 | +} |
|
| 16 | +?> |
|
| 14 | 17 | </td> |
| 15 | 18 | <td style="width: 10%"></td> |
| 16 | 19 | </tr> |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
| 2 | -<title><?php echo PAGE_TITLE; ?><?php if (isset($GameName)) echo ": $GameName"; ?></title> |
|
| 2 | +<title><?php echo PAGE_TITLE; ?><?php if (isset($GameName)) { |
|
| 3 | + echo ": $GameName"; |
|
| 4 | +} |
|
| 5 | +?></title> |
|
| 3 | 6 | <meta http-equiv="pragma" content="no-cache" /><?php |
| 4 | 7 | if (!is_object($ThisAccount) || $ThisAccount->isDefaultCSSEnabled()) { ?> |
| 5 | 8 | <link rel="stylesheet" type="text/css" href="<?php echo $CSSLink; ?>" /> |
@@ -76,7 +76,10 @@ discard block |
||
| 76 | 76 | <input type="number" name="amount" value="0" min="<?php echo MIN_GLOBAL_RELATIONS; ?>" max="<?php echo MAX_GLOBAL_RELATIONS; ?>" style="width:75px" /> |
| 77 | 77 | <select name="race"><?php |
| 78 | 78 | foreach (Smr\Race::getPlayableNames() as $raceID => $raceName) { |
| 79 | - if ($raceID == $ThisPlayer->getRaceID()) continue; ?> |
|
| 79 | + if ($raceID == $ThisPlayer->getRaceID()) { |
|
| 80 | + continue; |
|
| 81 | + } |
|
| 82 | + ?> |
|
| 80 | 83 | <option value="<?php echo $raceID; ?>"><?php echo $raceName; ?></option><?php |
| 81 | 84 | } ?> |
| 82 | 85 | </select> |
@@ -87,7 +90,10 @@ discard block |
||
| 87 | 90 | <form method="POST" action="<?php echo $ChangeRaceHREF; ?>"> |
| 88 | 91 | <select name="race"><?php |
| 89 | 92 | foreach (Smr\Race::getPlayableNames() as $raceID => $raceName) { |
| 90 | - if ($raceID == $ThisPlayer->getRaceID()) continue; ?> |
|
| 93 | + if ($raceID == $ThisPlayer->getRaceID()) { |
|
| 94 | + continue; |
|
| 95 | + } |
|
| 96 | + ?> |
|
| 91 | 97 | <option value="<?php echo $raceID; ?>"><?php echo $raceName; ?></option><?php |
| 92 | 98 | } ?> |
| 93 | 99 | </select> |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | AND receiver_delete = ' . $db->escapeBoolean(false) . ' |
| 129 | 129 | ORDER BY send_time DESC'); |
| 130 | 130 | foreach ($dbResult->records() as $dbRecord) { |
| 131 | - $groupBox =& $messageBox['GroupedMessages'][$dbRecord->getInt('sender_id')]; |
|
| 131 | + $groupBox = & $messageBox['GroupedMessages'][$dbRecord->getInt('sender_id')]; |
|
| 132 | 132 | // Limit the number of messages in each group |
| 133 | 133 | if (!isset($groupBox['Messages']) || count($groupBox['Messages']) < MESSAGE_SCOUT_GROUP_LIMIT) { |
| 134 | 134 | $groupBox['Messages'][] = displayMessage($dbRecord->getInt('message_id'), $dbRecord->getInt('account_id'), $dbRecord->getInt('sender_id'), $player->getGameID(), $dbRecord->getString('message_text'), $dbRecord->getInt('send_time'), $dbRecord->getBoolean('msg_read'), MSG_SCOUT, $player->getAccount()); |
@@ -44,7 +44,10 @@ |
||
| 44 | 44 | <td> |
| 45 | 45 | <select name="game_type"><?php |
| 46 | 46 | foreach (SmrGame::GAME_TYPES as $GameTypeID => $GameType) { |
| 47 | - ?><option value="<?php echo $GameTypeID; ?>" <?php if ($GameType == $Game['gameType']) echo 'selected'; ?>><?php echo $GameType; ?></option><?php |
|
| 47 | + ?><option value="<?php echo $GameTypeID; ?>" <?php if ($GameType == $Game['gameType']) { |
|
| 48 | + echo 'selected'; |
|
| 49 | + } |
|
| 50 | + ?>><?php echo $GameType; ?></option><?php |
|
| 48 | 51 | } ?> |
| 49 | 52 | </select> |
| 50 | 53 | </td> |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | 1 => ['pipe', 'w'], // stdout is a pipe that the child will write to |
| 15 | 15 | ]; |
| 16 | 16 | $engine = proc_open(UCI_CHESS_ENGINE, $descriptorSpec, $pipes); |
| 17 | - $toEngine =& $pipes[0]; |
|
| 18 | - $fromEngine =& $pipes[1]; |
|
| 17 | + $toEngine = & $pipes[0]; |
|
| 18 | + $fromEngine = & $pipes[1]; |
|
| 19 | 19 | |
| 20 | 20 | function readFromEngine(bool $block = true): void { |
| 21 | 21 | global $fromEngine; |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | * Can be used to convert any type of notice into an exception. |
| 120 | 120 | */ |
| 121 | 121 | function exception_error_handler($errno, $errstr, $errfile, $errline): bool { |
| 122 | - if (!(error_reporting() & $errno)) { |
|
| 122 | + if (!(error_reporting()&$errno)) { |
|
| 123 | 123 | return false; // error is suppressed |
| 124 | 124 | } |
| 125 | 125 | throw new ErrorException($errstr, $errno, E_ERROR, $errfile, $errline); |
@@ -35,13 +35,13 @@ |
||
| 35 | 35 | const USER_SCORE_NAME = 'User Score'; |
| 36 | 36 | $hofTypes = [DONATION_NAME => true, USER_SCORE_NAME => true]; |
| 37 | 37 | foreach ($dbResult->records() as $dbRecord) { |
| 38 | - $hof =& $hofTypes; |
|
| 38 | + $hof = & $hofTypes; |
|
| 39 | 39 | $typeList = explode(':', $dbRecord->getString('type')); |
| 40 | 40 | foreach ($typeList as $type) { |
| 41 | 41 | if (!isset($hof[$type])) { |
| 42 | 42 | $hof[$type] = []; |
| 43 | 43 | } |
| 44 | - $hof =& $hof[$type]; |
|
| 44 | + $hof = & $hof[$type]; |
|
| 45 | 45 | } |
| 46 | 46 | $hof = true; |
| 47 | 47 | } |
@@ -20,8 +20,7 @@ |
||
| 20 | 20 | if ($join === false) { |
| 21 | 21 | create_error('Join Date is not valid!'); |
| 22 | 22 | } |
| 23 | -$start = empty(Smr\Request::get('game_start')) ? $join : |
|
| 24 | - DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
| 23 | +$start = empty(Smr\Request::get('game_start')) ? $join : DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
| 25 | 24 | if ($start === false) { |
| 26 | 25 | create_error('Start Date is not valid!'); |
| 27 | 26 | } |