@@ -69,7 +69,6 @@  | 
                                                    ||
| 69 | 69 | }  | 
                                                        
| 70 | 70 | |
| 71 | 71 | /**  | 
                                                        
| 72 | - * @param mixed $element  | 
                                                        |
| 73 | 72 | */  | 
                                                        
| 74 | 73 |  		public function append($value) { | 
                                                        
| 75 | 74 | $this->elements[] = $value;  | 
                                                        
@@ -73,6 +73,10 @@  | 
                                                    ||
| 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;  | 
                                                        
@@ -43,6 +43,9 @@  | 
                                                    ||
| 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 | }  | 
                                                        
@@ -60,6 +60,9 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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);  | 
                                                        
@@ -3,15 +3,11 @@  | 
                                                    ||
| 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 | |
@@ -41,6 +41,10 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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 :  | 
                                                        
@@ -29,6 +29,9 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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 | }  | 
                                                        
@@ -77,6 +77,10 @@  | 
                                                    ||
| 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];  | 
                                                        
@@ -13,7 +13,6 @@  | 
                                                    ||
| 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 | |
@@ -15,7 +15,6 @@  | 
                                                    ||
| 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 { | 
                                                        
@@ -14,7 +14,6 @@  | 
                                                    ||
| 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 { |