Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 66cca2...79fe31 )
by Dan
03:45
created
engine/Default/shop_goods.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@
 block discarded – undo
50 50
 			//get base for ports that dont happen to trade that good
51 51
 			$GOODS = Globals::getGoods();
52 52
 			$fine = $totalFine = $port->getLevel() *
53
-			    (($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) +
54
-			     ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) +
55
-			     ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice']));
53
+				(($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) +
54
+				 ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) +
55
+				 ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice']));
56 56
 			$player->increaseHOF($ship->getCargo(GOODS_SLAVES) + $ship->getCargo(GOODS_WEAPONS) + $ship->getCargo(GOODS_NARCOTICS), array('Trade','Search','Caught','Goods Confiscated'), HOF_PUBLIC);
57 57
 			$player->increaseHOF($totalFine,array('Trade','Search','Caught','Amount Fined'), HOF_PUBLIC);
58 58
 			$template->assign('TotalFine', $totalFine);
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@  discard block
 block discarded – undo
6 6
 $port = $player->getSectorPort();
7 7
 $template->assign('Port', $port);
8 8
 
9
-$tradeable = checkPortTradeable($port,$player);
10
-if($tradeable!==true)
9
+$tradeable = checkPortTradeable($port, $player);
10
+if ($tradeable !== true)
11 11
 	create_error($tradeable);
12 12
 
13 13
 // topic
14
-$template->assign('PageTopic','Port In Sector #'.$player->getSectorID());
14
+$template->assign('PageTopic', 'Port In Sector #' . $player->getSectorID());
15 15
 
16 16
 $container = create_container('skeleton.php', 'council_list.php');
17 17
 $container['race_id'] = $port->getRaceID();
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
 	$rand = mt_rand(1, 100);
43 43
 	if ($rand <= $base_chance) {
44 44
 		$searchedByFeds = true;
45
-		$player->increaseHOF(1,array('Trade','Search','Total'), HOF_PUBLIC);
45
+		$player->increaseHOF(1, array('Trade', 'Search', 'Total'), HOF_PUBLIC);
46 46
 		if ($ship->hasIllegalGoods()) {
47 47
 			$template->assign('IllegalsFound', true);
48
-			$player->increaseHOF(1,array('Trade','Search','Caught','Number Of Times'), HOF_PUBLIC);
48
+			$player->increaseHOF(1, array('Trade', 'Search', 'Caught', 'Number Of Times'), HOF_PUBLIC);
49 49
 			//find the fine
50 50
 			//get base for ports that dont happen to trade that good
51 51
 			$GOODS = Globals::getGoods();
@@ -53,16 +53,16 @@  discard block
 block discarded – undo
53 53
 			    (($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) +
54 54
 			     ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) +
55 55
 			     ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice']));
56
-			$player->increaseHOF($ship->getCargo(GOODS_SLAVES) + $ship->getCargo(GOODS_WEAPONS) + $ship->getCargo(GOODS_NARCOTICS), array('Trade','Search','Caught','Goods Confiscated'), HOF_PUBLIC);
57
-			$player->increaseHOF($totalFine,array('Trade','Search','Caught','Amount Fined'), HOF_PUBLIC);
56
+			$player->increaseHOF($ship->getCargo(GOODS_SLAVES) + $ship->getCargo(GOODS_WEAPONS) + $ship->getCargo(GOODS_NARCOTICS), array('Trade', 'Search', 'Caught', 'Goods Confiscated'), HOF_PUBLIC);
57
+			$player->increaseHOF($totalFine, array('Trade', 'Search', 'Caught', 'Amount Fined'), HOF_PUBLIC);
58 58
 			$template->assign('TotalFine', $totalFine);
59 59
 
60
-			if($fine > $player->getCredits()) {
60
+			if ($fine > $player->getCredits()) {
61 61
 				$fine -= $player->getCredits();
62 62
 				$player->decreaseCredits($player->getCredits());
63 63
 				if ($fine > 0) {
64 64
 					// because credits is 0 it will take money from bank
65
-					$player->decreaseBank(min($fine,$player->getBank()));
65
+					$player->decreaseBank(min($fine, $player->getBank()));
66 66
 					// leave insurance
67 67
 					if ($player->getBank() < 5000)
68 68
 						$player->setBank(5000);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 		}
84 84
 		else {
85 85
 			$template->assign('IllegalsFound', false);
86
-			$player->increaseHOF(1,array('Trade','Search','Times Found Innocent'), HOF_PUBLIC);
86
+			$player->increaseHOF(1, array('Trade', 'Search', 'Times Found Innocent'), HOF_PUBLIC);
87 87
 			$player->increaseAlignment(1);
88 88
 			$account->log(LOG_TYPE_TRADING, 'Player gains alignment at port', $player->getSectorID());
89 89
 		}
Please login to merge, or discard this patch.