We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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 | } |
@@ -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>'); |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | if (!empty(BUG_REPORT_TO_ADDRESSES)) { |
| 70 | 70 | $mail = setupMailer(); |
| 71 | 71 | $mail->Subject = (defined('PAGE_PREFIX') ? PAGE_PREFIX : '??? ') . |
| 72 | - 'Automatic Bug Report'; |
|
| 72 | + 'Automatic Bug Report'; |
|
| 73 | 73 | $mail->setFrom('[email protected]'); |
| 74 | 74 | $mail->Body = $message; |
| 75 | 75 | foreach (BUG_REPORT_TO_ADDRESSES as $toAddress) { |
@@ -44,8 +44,8 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function getValue() { |
| 46 | 46 | if ($this->rankID == self::RANK_JACK || |
| 47 | - $this->rankID == self::RANK_QUEEN || |
|
| 48 | - $this->rankID == self::RANK_KING) { |
|
| 47 | + $this->rankID == self::RANK_QUEEN || |
|
| 48 | + $this->rankID == self::RANK_KING) { |
|
| 49 | 49 | return 10; |
| 50 | 50 | } elseif ($this->isAce()) { |
| 51 | 51 | return 11; |
@@ -549,7 +549,7 @@ |
||
| 549 | 549 | */ |
| 550 | 550 | public function setWarp(SmrSector $warp) { |
| 551 | 551 | if ($this->getWarp() == $warp->getSectorID() && |
| 552 | - $warp->getWarp() == $this->getSectorID()) { |
|
| 552 | + $warp->getWarp() == $this->getSectorID()) { |
|
| 553 | 553 | // Warps are already set correctly! |
| 554 | 554 | return; |
| 555 | 555 | } |
@@ -446,20 +446,20 @@ |
||
| 446 | 446 | |
| 447 | 447 | if ($this->hasMines()) { |
| 448 | 448 | $thisMines = new SmrMines($this->getGameID(), $this->getMines()); |
| 449 | - $results['Results']['Mines'] =& $thisMines->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)], $minesAreAttacker); |
|
| 449 | + $results['Results']['Mines'] = & $thisMines->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)], $minesAreAttacker); |
|
| 450 | 450 | $results['TotalDamage'] += $results['Results']['Mines']['ActualDamage']['TotalDamage']; |
| 451 | 451 | } |
| 452 | 452 | |
| 453 | 453 | if ($this->hasCDs()) { |
| 454 | 454 | $thisCDs = new SmrCombatDrones($this->getGameID(), $this->getCDs()); |
| 455 | - $results['Results']['Drones'] =& $thisCDs->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)]); |
|
| 455 | + $results['Results']['Drones'] = & $thisCDs->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)]); |
|
| 456 | 456 | $results['TotalDamage'] += $results['Results']['Drones']['ActualDamage']['TotalDamage']; |
| 457 | 457 | } |
| 458 | 458 | |
| 459 | 459 | if (!$minesAreAttacker) { |
| 460 | 460 | if ($this->hasSDs()) { |
| 461 | 461 | $thisSDs = new SmrScoutDrones($this->getGameID(), $this->getSDs()); |
| 462 | - $results['Results']['Scouts'] =& $thisSDs->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)]); |
|
| 462 | + $results['Results']['Scouts'] = & $thisSDs->shootPlayerAsForce($this, $targetPlayers[array_rand($targetPlayers)]); |
|
| 463 | 463 | $results['TotalDamage'] += $results['Results']['Scouts']['ActualDamage']['TotalDamage']; |
| 464 | 464 | } |
| 465 | 465 | } |