We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -44,8 +44,8 @@ |
||
44 | 44 | */ |
45 | 45 | public function getValue() : int { |
46 | 46 | if ($this->rank == self::RANK_JACK || |
47 | - $this->rank == self::RANK_QUEEN || |
|
48 | - $this->rank == self::RANK_KING) { |
|
47 | + $this->rank == self::RANK_QUEEN || |
|
48 | + $this->rank == self::RANK_KING) { |
|
49 | 49 | return 10; |
50 | 50 | } elseif ($this->isAce()) { |
51 | 51 | return 11; |
@@ -857,14 +857,14 @@ |
||
857 | 857 | |
858 | 858 | public function isFederal() { |
859 | 859 | return $this->getShipTypeID() == SHIP_TYPE_FEDERAL_DISCOVERY || |
860 | - $this->getShipTypeID() == SHIP_TYPE_FEDERAL_WARRANT || |
|
861 | - $this->getShipTypeID() == SHIP_TYPE_FEDERAL_ULTIMATUM; |
|
860 | + $this->getShipTypeID() == SHIP_TYPE_FEDERAL_WARRANT || |
|
861 | + $this->getShipTypeID() == SHIP_TYPE_FEDERAL_ULTIMATUM; |
|
862 | 862 | } |
863 | 863 | |
864 | 864 | public function isUnderground() { |
865 | 865 | return $this->getShipTypeID() == SHIP_TYPE_THIEF || |
866 | - $this->getShipTypeID() == SHIP_TYPE_ASSASSIN || |
|
867 | - $this->getShipTypeID() == SHIP_TYPE_DEATH_CRUISER; |
|
866 | + $this->getShipTypeID() == SHIP_TYPE_ASSASSIN || |
|
867 | + $this->getShipTypeID() == SHIP_TYPE_DEATH_CRUISER; |
|
868 | 868 | } |
869 | 869 | |
870 | 870 | public function &shootPlayer(AbstractSmrPlayer $targetPlayer) { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | foreach (\Globals::getGoods() as $goodId => $value) { |
94 | 94 | if ($goods[$goodId] === true) { |
95 | 95 | if ($sectors[$currentSectorId]->getPort()->getGoodTransaction($goodId) === self::GOOD_SELLS && |
96 | - $sectors[$targetSectorId]->getPort()->getGoodTransaction($goodId) === self::GOOD_BUYS) { |
|
96 | + $sectors[$targetSectorId]->getPort()->getGoodTransaction($goodId) === self::GOOD_BUYS) { |
|
97 | 97 | $rl[] = new OneWayRoute($currentSectorId, $targetSectorId, $raceID, $sectors[$targetSectorId]->getPort()->getRaceID(), $sectors[$currentSectorId]->getPort()->getGoodDistance($goodId), $sectors[$targetSectorId]->getPort()->getGoodDistance($goodId), $distance, $goodId); |
98 | 98 | } |
99 | 99 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | foreach (\Globals::getGoods() as $goodId => $value) { |
122 | 122 | if ($goods[$goodId] === true) { |
123 | 123 | if ($sectors[$currentSectorId]->getPort()->getGoodTransaction($goodId) === self::GOOD_SELLS && |
124 | - $sectors[$targetSectorId]->getPort()->getGoodTransaction($goodId) === self::GOOD_BUYS) { |
|
124 | + $sectors[$targetSectorId]->getPort()->getGoodTransaction($goodId) === self::GOOD_BUYS) { |
|
125 | 125 | $owr = new OneWayRoute($currentSectorId, $targetSectorId, $sectors[$currentSectorId]->getPort()->getRaceID(), $sectors[$targetSectorId]->getPort()->getRaceID(), $sectors[$currentSectorId]->getPort()->getGoodDistance($goodId), $sectors[$targetSectorId]->getPort()->getGoodDistance($goodId), $distance, $goodId); |
126 | 126 | $fakeReturn = new OneWayRoute($targetSectorId, $currentSectorId, $sectors[$targetSectorId]->getPort()->getRaceID(), $sectors[$currentSectorId]->getPort()->getRaceID(), 0, 0, $distance, GOODS_NOTHING); |
127 | 127 | $mpr = new MultiplePortRoute($owr, $fakeReturn); |
@@ -100,16 +100,16 @@ |
||
100 | 100 | $container['view_game_id'] = $var['view_game_id']; |
101 | 101 | $container['game_name'] = $var['game_name']; |
102 | 102 | $menuItems[] = ['Link' => SmrSession::getNewHREF($container), |
103 | - 'Text' => 'Game Details']; |
|
103 | + 'Text' => 'Game Details']; |
|
104 | 104 | $container['body'] = 'history_games_detail.php'; |
105 | 105 | $menuItems[] = ['Link' => SmrSession::getNewHREF($container), |
106 | - 'Text' => 'Extended Stats']; |
|
106 | + 'Text' => 'Extended Stats']; |
|
107 | 107 | $container['body'] = 'history_games_hof.php'; |
108 | 108 | $menuItems[] = ['Link' => SmrSession::getNewHREF($container), |
109 | - 'Text' => 'Hall of Fame']; |
|
109 | + 'Text' => 'Hall of Fame']; |
|
110 | 110 | $container['body'] = 'history_games_news.php'; |
111 | 111 | $menuItems[] = ['Link' => SmrSession::getNewHREF($container), |
112 | - 'Text' => 'Game News']; |
|
112 | + 'Text' => 'Game News']; |
|
113 | 113 | // make the selected index bold |
114 | 114 | $boldItem =& $menuItems[$selected_index]['Text']; |
115 | 115 | $boldItem = '<b>' . $boldItem . '</b>'; |
@@ -35,7 +35,7 @@ |
||
35 | 35 | } |
36 | 36 | $helper = self::getTwitterObj($_SESSION['TwitterToken']); |
37 | 37 | $accessToken = $helper->oauth('oauth/access_token', |
38 | - ['oauth_verifier' => \Request::get('oauth_verifier')]); |
|
38 | + ['oauth_verifier' => \Request::get('oauth_verifier')]); |
|
39 | 39 | $auth = self::getTwitterObj($accessToken); |
40 | 40 | $userInfo = $auth->get('account/verify_credentials', ['include_email' => 'true']); |
41 | 41 | if ($auth->getLastHttpCode() == 200) { |
@@ -707,7 +707,7 @@ |
||
707 | 707 | if ($buildingTypeID === false) { |
708 | 708 | $structs = $this->typeInfo::STRUCTURES; |
709 | 709 | return array_combine(array_keys($structs), |
710 | - array_column($structs, 'max_amount')); |
|
710 | + array_column($structs, 'max_amount')); |
|
711 | 711 | } |
712 | 712 | return $this->getStructureTypes($buildingTypeID)->maxAmount(); |
713 | 713 | } |
@@ -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 | } |
@@ -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) { |
@@ -20,11 +20,11 @@ |
||
20 | 20 | $this->includeTemplate('includes/ForceFullCombatResults.inc.php', array('FullForceCombatResults'=>$CombatResults)); |
21 | 21 | } elseif ($CombatResultsType == 'PORT') { |
22 | 22 | $this->includeTemplate('includes/PortFullCombatResults.inc.php', array('FullPortCombatResults'=>$CombatResults, |
23 | - 'MinimalDisplay'=>false, |
|
24 | - 'AlreadyDestroyed'=>false)); |
|
23 | + 'MinimalDisplay'=>false, |
|
24 | + 'AlreadyDestroyed'=>false)); |
|
25 | 25 | } elseif ($CombatResultsType == 'PLANET') { |
26 | 26 | $this->includeTemplate('includes/PlanetFullCombatResults.inc.php', array('FullPlanetCombatResults'=>$CombatResults, |
27 | - 'MinimalDisplay'=>false, |
|
28 | - 'AlreadyDestroyed'=>false)); |
|
27 | + 'MinimalDisplay'=>false, |
|
28 | + 'AlreadyDestroyed'=>false)); |
|
29 | 29 | } |
30 | 30 | ?> |