We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | foreach ($dbResult->records() as $dbRecord) { |
| 310 | 310 | try { |
| 311 | 311 | $otherPlayer = SmrPlayer::getPlayer($dbRecord->getInt('from_account_id'), |
| 312 | - $this->getGameID(), $forceUpdate); |
|
| 312 | + $this->getGameID(), $forceUpdate); |
|
| 313 | 313 | } catch (Smr\Exceptions\PlayerNotFound) { |
| 314 | 314 | // Skip players that have not joined this game |
| 315 | 315 | continue; |
@@ -866,9 +866,9 @@ discard block |
||
| 866 | 866 | */ |
| 867 | 867 | public function canFight() : bool { |
| 868 | 868 | return !($this->hasNewbieTurns() || |
| 869 | - $this->isDead() || |
|
| 870 | - $this->isLandedOnPlanet() || |
|
| 871 | - $this->hasFederalProtection()); |
|
| 869 | + $this->isDead() || |
|
| 870 | + $this->isLandedOnPlanet() || |
|
| 871 | + $this->hasFederalProtection()); |
|
| 872 | 872 | } |
| 873 | 873 | |
| 874 | 874 | public function setDead(bool $bool) : void { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | </center><?php |
| 75 | 75 | |
| 76 | 76 | } elseif (in_array($type, ['search', 'alliance_ips', 'wild_log', 'wild_in', |
| 77 | - 'compare', 'compare_log', 'wild_ip', 'wild_host'])) { ?> |
|
| 77 | + 'compare', 'compare_log', 'wild_ip', 'wild_host'])) { ?> |
|
| 78 | 78 | |
| 79 | 79 | <center> |
| 80 | 80 | <?php echo $Summary; ?><br /><br /> |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | // Set the body of the e-mail |
| 39 | 39 | set_mail_body($mail, $var['newsletter_html'], $var['newsletter_text'], |
| 40 | - Smr\Request::get('salutation')); |
|
| 40 | + Smr\Request::get('salutation')); |
|
| 41 | 41 | |
| 42 | 42 | if (Smr\Request::get('to_email') == '*') { |
| 43 | 43 | // Send the newsletter to all players. |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | // * C o l o r L e g e n d |
| 29 | 29 | // ********************************* |
| 30 | 30 | $avail_colors = array('#FFFFFF', '#00FF00', '#FF3377', '#0099FF', |
| 31 | - '#FF0000', '#0000FF'); |
|
| 31 | + '#FF0000', '#0000FF'); |
|
| 32 | 32 | |
| 33 | 33 | // now assign each account id a color |
| 34 | 34 | $colors = []; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $template->assign('SelectedPortRaceID', $selectedPortRaceID); |
| 26 | 26 | |
| 27 | 27 | $sectorLocationIDs = array_pad(array_keys($editSector->getLocations()), |
| 28 | - UNI_GEN_LOCATION_SLOTS, 0); |
|
| 28 | + UNI_GEN_LOCATION_SLOTS, 0); |
|
| 29 | 29 | $template->assign('SectorLocationIDs', $sectorLocationIDs); |
| 30 | 30 | |
| 31 | 31 | if ($editSector->hasWarp()) { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | // Form to make planet changes |
| 39 | 39 | $container = Page::create('admin/unigen/universe_create_save_processing.php', |
| 40 | - 'admin/unigen/universe_create_sectors.php', $var); |
|
| 40 | + 'admin/unigen/universe_create_sectors.php', $var); |
|
| 41 | 41 | $template->assign('CreatePlanetsFormHREF', $container->href()); |
| 42 | 42 | |
| 43 | 43 | // HREF to cancel and return to the previous page |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | |
| 99 | 99 | // Form to make location changes |
| 100 | 100 | $container = Page::create('admin/unigen/universe_create_save_processing.php', |
| 101 | - 'admin/unigen/universe_create_sectors.php', $var); |
|
| 101 | + 'admin/unigen/universe_create_sectors.php', $var); |
|
| 102 | 102 | $template->assign('CreateLocationsFormHREF', $container->href()); |
| 103 | 103 | |
| 104 | 104 | // HREF to cancel and return to the previous page |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | $missingLocs = array_diff(array_keys(SmrLocation::getAllLocations()), |
| 23 | - array_keys($existingLocs)); |
|
| 23 | + array_keys($existingLocs)); |
|
| 24 | 24 | $missingLocNames = []; |
| 25 | 25 | foreach ($missingLocs as $locID) { |
| 26 | 26 | $missingLocNames[] = SmrLocation::getLocation($locID)->getName(); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | create_error('Join Date is not valid!'); |
| 22 | 22 | } |
| 23 | 23 | $start = empty(Smr\Request::get('game_start')) ? $join : |
| 24 | - DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
| 24 | + DateTime::createFromFormat('d/m/Y|', Smr\Request::get('game_start')); |
|
| 25 | 25 | if ($start === false) { |
| 26 | 26 | create_error('Start Date is not valid!'); |
| 27 | 27 | } |