We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -20,11 +20,11 @@ |
||
20 | 20 | $this->includeTemplate('includes/ForceFullCombatResults.inc', array('FullForceCombatResults'=>$CombatResults)); |
21 | 21 | } else if ($CombatResultsType == 'PORT') { |
22 | 22 | $this->includeTemplate('includes/PortFullCombatResults.inc', array('FullPortCombatResults'=>$CombatResults, |
23 | - 'MinimalDisplay'=>false, |
|
24 | - 'AlreadyDestroyed'=>false)); |
|
23 | + 'MinimalDisplay'=>false, |
|
24 | + 'AlreadyDestroyed'=>false)); |
|
25 | 25 | } else if ($CombatResultsType == 'PLANET') { |
26 | 26 | $this->includeTemplate('includes/PlanetFullCombatResults.inc', array('FullPlanetCombatResults'=>$CombatResults, |
27 | - 'MinimalDisplay'=>false, |
|
28 | - 'AlreadyDestroyed'=>false)); |
|
27 | + 'MinimalDisplay'=>false, |
|
28 | + 'AlreadyDestroyed'=>false)); |
|
29 | 29 | } |
30 | 30 | ?> |
@@ -102,7 +102,7 @@ |
||
102 | 102 | if (!$UniGen) { |
103 | 103 | $CanScanSector = ($ThisShip->hasScanner() && $isLinkedSector) || $isCurrentSector; |
104 | 104 | $ShowFriendlyForces = isset($HideAlliedForces) && $HideAlliedForces ? |
105 | - $Sector->hasPlayerForces($MapPlayer) : $Sector->hasFriendlyForces($MapPlayer); |
|
105 | + $Sector->hasPlayerForces($MapPlayer) : $Sector->hasFriendlyForces($MapPlayer); |
|
106 | 106 | if (($CanScanSector && ($Sector->hasForces() || $Sector->hasPlayers())) || $ShowFriendlyForces || $Sector->hasFriendlyTraders($MapPlayer)) { ?> |
107 | 107 | <div class="lmtf"><?php |
108 | 108 | if ($CanScanSector && $Sector->hasEnemyTraders($MapPlayer)) { |
@@ -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> |
@@ -20,13 +20,13 @@ |
||
20 | 20 | const USER_SCORE_NAME = 'User Score'; |
21 | 21 | $hofTypes = array(DONATION_NAME=>true, USER_SCORE_NAME=>true); |
22 | 22 | while ($db->nextRecord()) { |
23 | - $hof =& $hofTypes; |
|
23 | + $hof = & $hofTypes; |
|
24 | 24 | $typeList = explode(':', $db->getField('type')); |
25 | 25 | foreach ($typeList as $type) { |
26 | 26 | if (!isset($hof[$type])) { |
27 | 27 | $hof[$type] = array(); |
28 | 28 | } |
29 | - $hof =& $hof[$type]; |
|
29 | + $hof = & $hof[$type]; |
|
30 | 30 | } |
31 | 31 | $hof = true; |
32 | 32 | } |
@@ -20,13 +20,13 @@ |
||
20 | 20 | const USER_SCORE_NAME = 'User Score'; |
21 | 21 | $hofTypes = array(DONATION_NAME=>true, USER_SCORE_NAME=>true); |
22 | 22 | while ($db->nextRecord()) { |
23 | - $hof =& $hofTypes; |
|
23 | + $hof = & $hofTypes; |
|
24 | 24 | $typeList = explode(':', $db->getField('type')); |
25 | 25 | foreach ($typeList as $type) { |
26 | 26 | if (!isset($hof[$type])) { |
27 | 27 | $hof[$type] = array(); |
28 | 28 | } |
29 | - $hof =& $hof[$type]; |
|
29 | + $hof = & $hof[$type]; |
|
30 | 30 | } |
31 | 31 | $hof = true; |
32 | 32 | } |
@@ -19,8 +19,7 @@ |
||
19 | 19 | </tr><?php |
20 | 20 | if (isset($Locations)) { |
21 | 21 | $this->includeTemplate('includes/ViewLocations.inc', array('Locations'=>$Locations)); |
22 | -} |
|
23 | -else { ?> |
|
22 | +} else { ?> |
|
24 | 23 | <tr> |
25 | 24 | <td><input name="name" type="text" value="<?php echo htmlspecialchars($Location->getName()); ?>" /></td> |
26 | 25 | <td><input name="action" type="text" value="<?php echo htmlspecialchars($Location->getAction()); ?>" /></td> |
@@ -4,8 +4,7 @@ |
||
4 | 4 | <h1>Attacker Results</h1><br /><?php |
5 | 5 | } |
6 | 6 | $this->includeTemplate('includes/PlanetTraderTeamCombatResults.inc', array('TraderTeamCombatResults'=>$FullPlanetCombatResults['Attackers'], 'MinimalDisplay'=>$MinimalDisplay)); |
7 | -} |
|
8 | -else if (!$MinimalDisplay) { |
|
7 | +} else if (!$MinimalDisplay) { |
|
9 | 8 | ?><span class="bold">The planet is already destroyed.</span><?php |
10 | 9 | } |
11 | 10 | ?><br /><?php |
@@ -180,7 +180,7 @@ |
||
180 | 180 | //heres the AIs cards |
181 | 181 | $i = 1; |
182 | 182 | if ((get_value($ai_card) == 21 && count($ai_card) == 2) || |
183 | - (get_value($player_card) > 21 && get_value($ai_card) <= 21)) { |
|
183 | + (get_value($player_card) > 21 && get_value($ai_card) <= 21)) { |
|
184 | 184 | $message .= ('<h1 class="red center">Bank Wins</h1>'); |
185 | 185 | } |
186 | 186 | $message .= ('<div class="center">Bank\'s Cards are</div><br /><table class="center"><tr>'); |
@@ -16,8 +16,7 @@ |
||
16 | 16 | $template->assign('shipArray', $shipArray); |
17 | 17 | |
18 | 18 | $template->display('ship_list.php'); |
19 | -} |
|
20 | -catch(Throwable $e) { |
|
19 | +} catch(Throwable $e) { |
|
21 | 20 | handleException($e); |
22 | 21 | } |
23 | 22 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | $template->display('ship_list.php'); |
19 | 19 | } |
20 | -catch(Throwable $e) { |
|
20 | +catch (Throwable $e) { |
|
21 | 21 | handleException($e); |
22 | 22 | } |
23 | 23 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $selector = '<select onchange="filterSelect(this)"><option>All</option>'; |
26 | 26 | $db->query('SELECT DISTINCT ' . $name . ' FROM ' . $table . ' ORDER BY ' . $name); |
27 | 27 | while ($db->nextRecord()) { |
28 | - $selector .= '<option>'.$db->getField($name).'</option>'; |
|
28 | + $selector .= '<option>' . $db->getField($name) . '</option>'; |
|
29 | 29 | } |
30 | 30 | $selector .= '</select>'; |
31 | 31 | return $selector; |