We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | // Form to make planet changes |
35 | 35 | $container = Page::create('1.6/universe_create_save_processing.php', |
36 | - '1.6/universe_create_sectors.php', $var); |
|
36 | + '1.6/universe_create_sectors.php', $var); |
|
37 | 37 | $template->assign('CreatePlanetsFormHREF', $container->href()); |
38 | 38 | |
39 | 39 | // HREF to cancel and return to the previous page |
@@ -94,7 +94,7 @@ |
||
94 | 94 | |
95 | 95 | // Form to make location changes |
96 | 96 | $container = Page::create('1.6/universe_create_save_processing.php', |
97 | - '1.6/universe_create_sectors.php', $var); |
|
97 | + '1.6/universe_create_sectors.php', $var); |
|
98 | 98 | $template->assign('CreateLocationsFormHREF', $container->href()); |
99 | 99 | |
100 | 100 | // HREF to cancel and return to the previous page |
@@ -7,4 +7,4 @@ |
||
7 | 7 | $msg = '<span class="green">SUCCESS: </span>Enabled game ' . $game->getDisplayName(); |
8 | 8 | |
9 | 9 | Page::create('skeleton.php', 'enable_game.php', |
10 | - array('processing_msg' => $msg))->go(); |
|
10 | + array('processing_msg' => $msg))->go(); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $menuItems[] = array('Link'=>Globals::getPlanetListHREF($alliance_id), 'Text'=>'Defense'); |
41 | 41 | $menuItems[] = array('Link'=>Globals::getPlanetListFinancialHREF($alliance_id), 'Text'=>'Financial'); |
42 | 42 | // make the selected index bold |
43 | - $boldItem =& $menuItems[$selected_index]['Text']; |
|
43 | + $boldItem = & $menuItems[$selected_index]['Text']; |
|
44 | 44 | $boldItem = '<span class="bold">' . $boldItem . '</span>'; |
45 | 45 | |
46 | 46 | $template = Smr\Template::getInstance(); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | 'Text' => 'Game News', |
147 | 147 | ]; |
148 | 148 | // make the selected index bold |
149 | - $boldItem =& $menuItems[$selected_index]['Text']; |
|
149 | + $boldItem = & $menuItems[$selected_index]['Text']; |
|
150 | 150 | $boldItem = '<b>' . $boldItem . '</b>'; |
151 | 151 | |
152 | 152 | $template = Smr\Template::getInstance(); |
@@ -163,7 +163,7 @@ |
||
163 | 163 | |
164 | 164 | // transfer this value to next container |
165 | 165 | if (!isset($var[$source])) { |
166 | - throw new Exception('Could not find "' . $source. '" in var!'); |
|
166 | + throw new Exception('Could not find "' . $source . '" in var!'); |
|
167 | 167 | } |
168 | 168 | if ($dest === null) { |
169 | 169 | $dest = $source; |
@@ -55,9 +55,9 @@ |
||
55 | 55 | $session = Smr\Session::getInstance(); |
56 | 56 | $account = $session->getAccount(); |
57 | 57 | if (($vis == HOF_PRIVATE && $account->getAccountID() != $accountID) || |
58 | - ($vis == HOF_ALLIANCE && isset($gameID) && |
|
59 | - !SmrGame::getGame($gameID)->hasEnded() && |
|
60 | - !SmrPlayer::getPlayer($accountID, $gameID)->sameAlliance($session->getPlayer()))) |
|
58 | + ($vis == HOF_ALLIANCE && isset($gameID) && |
|
59 | + !SmrGame::getGame($gameID)->hasEnded() && |
|
60 | + !SmrPlayer::getPlayer($accountID, $gameID)->sameAlliance($session->getPlayer()))) |
|
61 | 61 | { |
62 | 62 | return '-'; |
63 | 63 | } else { |
@@ -561,7 +561,7 @@ |
||
561 | 561 | */ |
562 | 562 | public function setWarp(SmrSector $warp) : void { |
563 | 563 | if ($this->getWarp() == $warp->getSectorID() && |
564 | - $warp->getWarp() == $this->getSectorID()) { |
|
564 | + $warp->getWarp() == $this->getSectorID()) { |
|
565 | 565 | // Warps are already set correctly! |
566 | 566 | return; |
567 | 567 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | */ |
6 | 6 | class GameLink |
7 | 7 | { |
8 | - public bool $valid = false; // identifies if the message is linked to game data |
|
8 | + public bool $valid = false; // identifies if the message is linked to game data |
|
9 | 9 | public SmrPlayer $player; |
10 | 10 | |
11 | 11 | function __construct(Discord\Parts\Channel\Message $message) { |
@@ -735,14 +735,14 @@ |
||
735 | 735 | |
736 | 736 | public function isFederal() : bool { |
737 | 737 | return $this->getTypeID() === SHIP_TYPE_FEDERAL_DISCOVERY || |
738 | - $this->getTypeID() === SHIP_TYPE_FEDERAL_WARRANT || |
|
739 | - $this->getTypeID() === SHIP_TYPE_FEDERAL_ULTIMATUM; |
|
738 | + $this->getTypeID() === SHIP_TYPE_FEDERAL_WARRANT || |
|
739 | + $this->getTypeID() === SHIP_TYPE_FEDERAL_ULTIMATUM; |
|
740 | 740 | } |
741 | 741 | |
742 | 742 | public function isUnderground() : bool { |
743 | 743 | return $this->getTypeID() === SHIP_TYPE_THIEF || |
744 | - $this->getTypeID() === SHIP_TYPE_ASSASSIN || |
|
745 | - $this->getTypeID() === SHIP_TYPE_DEATH_CRUISER; |
|
744 | + $this->getTypeID() === SHIP_TYPE_ASSASSIN || |
|
745 | + $this->getTypeID() === SHIP_TYPE_DEATH_CRUISER; |
|
746 | 746 | } |
747 | 747 | |
748 | 748 | public function shootPlayers(array $targetPlayers) : array { |