GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#100)
by Axel
13:23
created
system/Classes/Container/StackList.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,6 @@
 block discarded – undo
69 69
 		}
70 70
 
71 71
 		/**
72
-		 * @param mixed $element
73 72
 		 */
74 73
 		public function append($value) {
75 74
 				$this->elements[] = $value;
Please login to merge, or discard this patch.
system/Classes/Library/Benchmark.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -73,6 +73,10 @@
 block discarded – undo
73 73
 		$this->precision = 3;
74 74
 	}
75 75
 
76
+	/**
77
+	 * @param string $mode
78
+	 * @param integer $precision
79
+	 */
76 80
 	protected function formatTime($mode, $precision) {
77 81
 		switch ($mode) {
78 82
 			case 'mcs': $formatTime = $this->rTime * 1000000;
Please login to merge, or discard this patch.
system/Classes/Library/Bug.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@
 block discarded – undo
43 43
 		}
44 44
 	}
45 45
 
46
+	/**
47
+	 * @param string $content
48
+	 */
46 49
 	public static function writeLog($target, $content) {
47 50
 		file_put_contents($target, $content . "\n\r", FILE_APPEND);
48 51
 	}
Please login to merge, or discard this patch.
system/Classes/Library/Chronos.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@  discard block
 block discarded – undo
60 60
 		}
61 61
 	}
62 62
 
63
+	/**
64
+	 * @param string $date
65
+	 */
63 66
 	private static function getRel($date) {
64 67
 		$origin = strtotime(Chronos::REAL_TIME);
65 68
 		$date 	= strtotime($date);
@@ -92,6 +95,9 @@  discard block
 block discarded – undo
92 95
 		return '<span class="hb lt" title="' . $title . '">' . $return . '</span>';
93 96
 	}
94 97
 
98
+	/**
99
+	 * @param double $seconds
100
+	 */
95 101
 	public static function secondToFormat($seconds, $format = 'large') {
96 102
 		$return = '';
97 103
 		$rel = floor($seconds / 3600);
Please login to merge, or discard this patch.
system/Classes/Library/Game.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,15 +3,11 @@
 block discarded – undo
3 3
 namespace Asylamba\Classes\Library;
4 4
 
5 5
 use Asylamba\Modules\Ares\Model\Commander;
6
-
7 6
 use Asylamba\Modules\Athena\Model\CommercialRoute;
8 7
 use Asylamba\Modules\Athena\Model\Transaction;
9 8
 use Asylamba\Modules\Athena\Resource\ShipResource;
10
-
11 9
 use Asylamba\Modules\Gaia\Resource\PlaceResource;
12
-
13 10
 use Asylamba\Modules\Artemis\Model\SpyReport;
14
-
15 11
 use Asylamba\Modules\Zeus\Model\PlayerBonus;
16 12
 
17 13
 
Please login to merge, or discard this patch.
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -41,6 +41,10 @@  discard block
 block discarded – undo
41 41
 		}
42 42
 	}
43 43
 
44
+	/**
45
+	 * @param integer $xCoord
46
+	 * @param integer $yCoord
47
+	 */
44 48
 	public static function formatCoord($xCoord, $yCoord, $planetPosition = 0, $sectorLocation = 0) {
45 49
 		if ($sectorLocation > 0) {
46 50
 			return '⟨' . $sectorLocation . '⟩ ' . $xCoord . ':' . $yCoord . ':' . $planetPosition . '';
@@ -51,6 +55,9 @@  discard block
 block discarded – undo
51 55
 		}
52 56
 	}
53 57
 
58
+	/**
59
+	 * @param integer $coeffPlanet
60
+	 */
54 61
 	public static function resourceProduction($coeffRefinery, $coeffPlanet) {
55 62
 		return $coeffRefinery * $coeffPlanet;
56 63
 	}
@@ -124,12 +131,18 @@  discard block
 block discarded – undo
124 131
 		return round($income * $bonusA * $bonusB);
125 132
 	}
126 133
 
134
+ 	/**
135
+ 	 * @param integer $taxCoeff
136
+ 	 */
127 137
  	public static function getTaxFromPopulation($population, $typeOfBase, $taxCoeff) {
128 138
 		$tax  = ((180 * $population) + 1500) * $taxCoeff;
129 139
 		$tax *= PlaceResource::get($typeOfBase, 'tax');
130 140
 		return $tax;
131 141
 	}
132 142
 
143
+	/**
144
+	 * @param integer $mode
145
+	 */
133 146
 	public static function getAntiSpyRadius($investment, $mode = ANTISPY_DISPLAY_MODE) {
134 147
 		return $mode == ANTISPY_DISPLAY_MODE
135 148
 			# en pixels : sert à l'affichage
@@ -278,6 +291,11 @@  discard block
 block discarded – undo
278 291
 		}
279 292
 	}
280 293
 
294
+	/**
295
+	 * @param integer $quantity
296
+	 * @param integer $identifier
297
+	 * @param integer $price
298
+	 */
281 299
 	public static function calculateRate($transactionType, $quantity, $identifier, $price) {
282 300
 		switch ($transactionType) {
283 301
 			case Transaction::TYP_RESOURCE :
Please login to merge, or discard this patch.
system/Modules/Ares/Model/Ship.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@  discard block
 block discarded – undo
29 29
 	public $pev = 0;
30 30
 	public $isAttacker;
31 31
 
32
+	/**
33
+	 * @param integer $nbrName
34
+	 */
32 35
 	public function __construct($nbrName, $isAttacker) {
33 36
 		$this->nbrName = $nbrName;
34 37
 		$this->isAttacker = $isAttacker;
@@ -106,6 +109,10 @@  discard block
 block discarded – undo
106 109
 		return $aleaNbr;
107 110
 	}
108 111
 		
112
+	/**
113
+	 * @param integer $key
114
+	 * @param integer $i
115
+	 */
109 116
 	protected function attack($key, $i, $enemySquadron) {
110 117
 		$damages = ceil(log(($this->attack[$i] / $enemySquadron->getShip($key)->getDefense()) + 1) * 4 * $this->attack[$i]);
111 118
 		$enemySquadron->getShip($key)->receiveDamages($damages, $enemySquadron, $key);
@@ -128,6 +135,9 @@  discard block
 block discarded – undo
128 135
 		}
129 136
 	}
130 137
 	
138
+	/**
139
+	 * @param integer $id
140
+	 */
131 141
 	public function affectId ($id) {
132 142
 		$this->id = $id + 1;
133 143
 	}
Please login to merge, or discard this patch.
system/Modules/Ares/Model/Squadron.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -77,6 +77,10 @@
 block discarded – undo
77 77
 
78 78
 	public function setRelId($id) { $this->relId = $id; }
79 79
 	
80
+	/**
81
+	 * @param integer $position
82
+	 * @param integer $rCommander
83
+	 */
80 84
 	public function __construct($vector, $id, $lineCoord, $position, $rCommander, $isAttacker = NULL) {
81 85
 		for($i = 0; $i < 12; $i++) {
82 86
 			$this->arrayOfShips[] = $vector[$i];
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 namespace Asylamba\Modules\Ares\Model;
14 14
 
15 15
 use Asylamba\Modules\Ares\Manager\FightManager;
16
-
17 16
 use Asylamba\Modules\Ares\Model\LiveReport;
18 17
 use Asylamba\Modules\Ares\Model\Ship;
19 18
 
Please login to merge, or discard this patch.
system/Modules/Artemis/Manager/SpyReportManager.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Asylamba\Classes\Library\Utils;
16 16
 use Asylamba\Classes\Worker\Manager;
17 17
 use Asylamba\Classes\Database\Database;
18
-
19 18
 use Asylamba\Modules\Artemis\Model\SpyReport;
20 19
 
21 20
 class SpyReportManager extends Manager {
Please login to merge, or discard this patch.
system/Modules/Athena/Manager/CommercialTaxManager.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Asylamba\Classes\Worker\Manager;
15 15
 use Asylamba\Classes\Library\Utils;
16 16
 use Asylamba\Classes\Database\Database;
17
-
18 17
 use Asylamba\Modules\Athena\Model\CommercialTax;
19 18
 
20 19
 class CommercialTaxManager extends Manager {
Please login to merge, or discard this patch.