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> |
@@ -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> |
@@ -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; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * Not intended to be used outside the DI context. |
27 | 27 | */ |
28 | 28 | public static function mysqliFactory(DatabaseProperties $dbProperties): mysqli { |
29 | - if (!mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT)) { |
|
29 | + if (!mysqli_report(MYSQLI_REPORT_ERROR|MYSQLI_REPORT_STRICT)) { |
|
30 | 30 | throw new RuntimeException('Failed to enable mysqli error reporting'); |
31 | 31 | } |
32 | 32 | $mysql = new mysqli( |
@@ -70,7 +70,7 @@ |
||
70 | 70 | 'illusion' => $ship->canHaveIllusion() ? 'Yes' : '', |
71 | 71 | 'jump' => $ship->canHaveJump() ? 'Yes' : '', |
72 | 72 | 'scrambler' => $ship->canHaveDCS() ? 'Yes' : '', |
73 | - 'locs' => implode('', array_map(fn(string $name): string => '<div>' . $name . '</div>', $shipLocs)), |
|
73 | + 'locs' => implode('', array_map(fn(string $name) : string => '<div>' . $name . '</div>', $shipLocs)), |
|
74 | 74 | ]; |
75 | 75 | return $stat; |
76 | 76 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public const TIME_BETWEEN_VOTING = 84600; // 23.5 hours |
15 | 15 | |
16 | 16 | /** @var ?array<int, int> */ |
17 | - private static ?array $CACHE_TIMEOUTS = null; |
|
17 | + private static ? array $CACHE_TIMEOUTS = null; |
|
18 | 18 | |
19 | 19 | /** @var array<string, mixed> */ |
20 | 20 | public readonly array $data; |
@@ -2886,7 +2886,7 @@ discard block |
||
2886 | 2886 | 'Starting Sector' => $this->getSectorID(), |
2887 | 2887 | ]; |
2888 | 2888 | |
2889 | - $this->missions[$missionID] =& $mission; |
|
2889 | + $this->missions[$missionID] = & $mission; |
|
2890 | 2890 | $this->setupMissionStep($missionID); |
2891 | 2891 | $this->rebuildMission($missionID); |
2892 | 2892 | |
@@ -2948,7 +2948,7 @@ discard block |
||
2948 | 2948 | if (!$this->hasMission($missionID)) { |
2949 | 2949 | throw new Exception('Unknown mission: ' . $missionID); |
2950 | 2950 | } |
2951 | - $mission =& $this->missions[$missionID]; |
|
2951 | + $mission = & $this->missions[$missionID]; |
|
2952 | 2952 | if ($mission['Task'] === false || $mission['Task']['Step'] != 'Claim') { |
2953 | 2953 | throw new Exception('Cannot claim mission: ' . $missionID . ', for step: ' . $mission['On Step']); |
2954 | 2954 | } |
@@ -123,7 +123,7 @@ |
||
123 | 123 | * |
124 | 124 | * @param array<string, mixed> $data |
125 | 125 | */ |
126 | -function replaceMissionTemplate(string|int|PlotGroup &$template, string $key, array $data): void { |
|
126 | +function replaceMissionTemplate(string|int|PlotGroup&$template, string $key, array $data): void { |
|
127 | 127 | if (!is_string($template)) { |
128 | 128 | return; |
129 | 129 | } |