We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -14,8 +14,8 @@ |
||
14 | 14 | 1 => ['pipe', 'w'], // stdout is a pipe that the child will write to |
15 | 15 | ]; |
16 | 16 | $engine = proc_open(UCI_CHESS_ENGINE, $descriptorSpec, $pipes); |
17 | - $toEngine =& $pipes[0]; |
|
18 | - $fromEngine =& $pipes[1]; |
|
17 | + $toEngine = & $pipes[0]; |
|
18 | + $fromEngine = & $pipes[1]; |
|
19 | 19 | |
20 | 20 | function readFromEngine(bool $block = true): void { |
21 | 21 | global $fromEngine; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | // Get all the properties to display for each weapon |
21 | 21 | $weapons = []; |
22 | 22 | foreach (SmrWeaponType::getAllWeaponTypes() as $weapon) { |
23 | - $restrictions = match ($weapon->getBuyerRestriction()) { |
|
23 | + $restrictions = match($weapon->getBuyerRestriction()) { |
|
24 | 24 | BUYER_RESTRICTION_NONE => [], |
25 | 25 | BUYER_RESTRICTION_GOOD => ['<div class="dgreen">Good</div>'], |
26 | 26 | BUYER_RESTRICTION_EVIL => ['<div class="red">Evil</div>'], |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | function buildShipStats(SmrShipType $ship): array { |
30 | 30 | //we want to put them all in an array so we dont have to have 15 td rows |
31 | - $restriction = match ($ship->getRestriction()) { |
|
31 | + $restriction = match($ship->getRestriction()) { |
|
32 | 32 | BUYER_RESTRICTION_NONE => '', |
33 | 33 | BUYER_RESTRICTION_GOOD => '<span class="dgreen">Good</span>', |
34 | 34 | BUYER_RESTRICTION_EVIL => '<span class="red">Evil</span>', |
@@ -9,7 +9,7 @@ |
||
9 | 9 | create_error('The port is no longer defenceless!'); |
10 | 10 | } |
11 | 11 | |
12 | -$credits = match ($var['PayoutType']) { |
|
12 | +$credits = match($var['PayoutType']) { |
|
13 | 13 | 'Raze' => $port->razePort($player), |
14 | 14 | 'Loot' => $port->lootPort($player), |
15 | 15 | }; |
@@ -53,9 +53,9 @@ |
||
53 | 53 | //get base for ports that dont happen to trade that good |
54 | 54 | $GOODS = Globals::getGoods(); |
55 | 55 | $fine = $totalFine = $port->getLevel() * |
56 | - (($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) + |
|
57 | - ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) + |
|
58 | - ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice'])); |
|
56 | + (($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) + |
|
57 | + ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) + |
|
58 | + ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice'])); |
|
59 | 59 | $player->increaseHOF($ship->getCargo(GOODS_SLAVES) + $ship->getCargo(GOODS_WEAPONS) + $ship->getCargo(GOODS_NARCOTICS), ['Trade', 'Search', 'Caught', 'Goods Confiscated'], HOF_PUBLIC); |
60 | 60 | $player->increaseHOF($totalFine, ['Trade', 'Search', 'Caught', 'Amount Fined'], HOF_PUBLIC); |
61 | 61 | $template->assign('TotalFine', $totalFine); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | } |
21 | 21 | $action = $var['action']; |
22 | 22 | |
23 | -$query = match ($action) { |
|
23 | +$query = match($action) { |
|
24 | 24 | COMBAT_LOG_PERSONAL, COMBAT_LOG_ALLIANCE => 'type=\'PLAYER\'', |
25 | 25 | COMBAT_LOG_PORT => 'type=\'PORT\'', |
26 | 26 | COMBAT_LOG_PLANET => 'type=\'PLANET\'', |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | }; |
60 | 60 | |
61 | 61 | // For display purposes, describe the type of log |
62 | -$type = match ($action) { |
|
62 | +$type = match($action) { |
|
63 | 63 | COMBAT_LOG_PERSONAL => 'personal', |
64 | 64 | COMBAT_LOG_ALLIANCE => 'alliance', |
65 | 65 | COMBAT_LOG_PORT => 'port', |
@@ -35,13 +35,13 @@ |
||
35 | 35 | const USER_SCORE_NAME = 'User Score'; |
36 | 36 | $hofTypes = [DONATION_NAME => true, USER_SCORE_NAME => true]; |
37 | 37 | foreach ($dbResult->records() as $dbRecord) { |
38 | - $hof =& $hofTypes; |
|
38 | + $hof = & $hofTypes; |
|
39 | 39 | $typeList = explode(':', $dbRecord->getString('type')); |
40 | 40 | foreach ($typeList as $type) { |
41 | 41 | if (!isset($hof[$type])) { |
42 | 42 | $hof[$type] = []; |
43 | 43 | } |
44 | - $hof =& $hof[$type]; |
|
44 | + $hof = & $hof[$type]; |
|
45 | 45 | } |
46 | 46 | $hof = true; |
47 | 47 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | // Default page has no category (action) selected yet |
19 | 19 | $action = $session->getRequestVar('action', ''); |
20 | 20 | if (!empty($action)) { |
21 | - [$sql, $from, $dis] = match ($action) { |
|
21 | + [$sql, $from, $dis] = match($action) { |
|
22 | 22 | 'Top Mined Sectors' => ['mines', 'sector', 'Mines'], |
23 | 23 | 'Sectors with most Forces' => ['mines + combat + scouts', 'sector', 'Forces'], |
24 | 24 | 'Top Killing Sectors' => ['kills', 'sector', 'Kills'], |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | // The attack is processed slightly differently if the attacker bumped into mines |
28 | 28 | // when moving into sector |
29 | -$bump = match ($var['action']) { |
|
29 | +$bump = match($var['action']) { |
|
30 | 30 | 'attack' => false, |
31 | 31 | 'bump' => true, |
32 | 32 | }; |