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 (#123)
by
unknown
07:27
created
system/Modules/Promethee/Manager/TechnologyManager.php 2 patches
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -82,6 +82,11 @@  discard block
 block discarded – undo
82 82
 		}
83 83
 	}
84 84
 
85
+	/**
86
+	 * @param integer $playerId
87
+	 * @param integer $technology
88
+	 * @param string $level
89
+	 */
85 90
 	public function addTech($playerId, $technology, $level) {
86 91
 		$statement = $this->database->prepare('INSERT INTO technology(rPlayer, technology, level) VALUES(:player_id, :technology, :level)');
87 92
 		return $statement->execute([
@@ -91,6 +96,11 @@  discard block
 block discarded – undo
91 96
 		]);
92 97
 	}
93 98
 
99
+	/**
100
+	 * @param integer $playerId
101
+	 * @param integer $technology
102
+	 * @param string $level
103
+	 */
94 104
 	public function updateTech($playerId, $technology, $level) {
95 105
 		$statement = $this->database->prepare('UPDATE technology SET level = :level WHERE rPlayer = :player_id AND technology = :technology');
96 106
 		return $statement->execute([
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,9 @@
 block discarded – undo
3 3
 namespace Asylamba\Modules\Promethee\Manager;
4 4
 
5 5
 use Asylamba\Modules\Promethee\Model\Technology;
6
-
7 6
 use Asylamba\Classes\Database\Database;
8 7
 use Asylamba\Modules\Zeus\Manager\PlayerBonusManager;
9 8
 use Asylamba\Modules\Promethee\Helper\TechnologyHelper;
10
-
11 9
 use Asylamba\Modules\Zeus\Model\Player;
12 10
 
13 11
 class TechnologyManager {
Please login to merge, or discard this patch.
system/Modules/Promethee/Model/Research.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
 		return $this->rPlayer;
49 49
 	}
50 50
 
51
+	/**
52
+	 * @param integer $id
53
+	 */
51 54
 	public function getLevel($id) {
52 55
 		switch ($id) {
53 56
 			case 0 : return $this->mathLevel; break;
Please login to merge, or discard this patch.
system/Modules/Promethee/Model/Technology.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 */
12 12
 namespace Asylamba\Modules\Promethee\Model;
13 13
 
14
-use Asylamba\Modules\Promethee\Resource\TechnologyResource;
15
-
16 14
 class Technology {
17 15
 	// ATTRIBUTES
18 16
 	public $rPlayer;
Please login to merge, or discard this patch.
system/Modules/Zeus/Helper/TutorialHelper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Asylamba\Modules\Zeus\Helper;
13 13
 
14 14
 use Asylamba\Classes\Library\Session\SessionWrapper;
15
-
16 15
 use Asylamba\Classes\Entity\EntityManager;
17 16
 use Asylamba\Modules\Zeus\Manager\PlayerManager;
18 17
 use Asylamba\Modules\Athena\Manager\OrbitalBaseManager;
Please login to merge, or discard this patch.
system/Modules/Zeus/Manager/PlayerBonusManager.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -266,6 +266,10 @@
 block discarded – undo
266 266
 		}
267 267
 	}
268 268
 
269
+	/**
270
+	 * @param integer $techno
271
+	 * @param string $level
272
+	 */
269 273
 	public function updateTechnoBonus(PlayerBonus $playerBonus, $techno, $level) {
270 274
 		switch ($techno) {
271 275
 			case Technology::GENERATOR_SPEED: $bonusId = PlayerBonus::GENERATOR_SPEED; break;
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,21 +3,17 @@
 block discarded – undo
3 3
 namespace Asylamba\Modules\Zeus\Manager;
4 4
 
5 5
 use Asylamba\Classes\Exception\ErrorException;
6
-
7 6
 use Asylamba\Classes\Container\StackList;
8
-
9 7
 use Asylamba\Modules\Zeus\Model\Player;
10 8
 use Asylamba\Modules\Zeus\Model\PlayerBonus;
11 9
 use Asylamba\Modules\Promethee\Model\Technology;
12 10
 use Asylamba\Modules\Demeter\Model\Law\Law;
13 11
 use Asylamba\Modules\Demeter\Resource\LawResources;
14
-
15 12
 use Asylamba\Modules\Demeter\Manager\Law\LawManager;
16 13
 use Asylamba\Modules\Demeter\Manager\ColorManager;
17 14
 use Asylamba\Modules\Promethee\Manager\TechnologyManager;
18 15
 use Asylamba\Modules\Promethee\Helper\TechnologyHelper;
19 16
 use Asylamba\Classes\Library\Session\SessionWrapper;
20
-
21 17
 use Asylamba\Modules\Demeter\Resource\ColorResource;
22 18
 
23 19
 class PlayerBonusManager
Please login to merge, or discard this patch.
system/Modules/Zeus/Repository/PlayerRepository.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Asylamba\Modules\Zeus\Repository;
4 4
 
5 5
 use Asylamba\Classes\Entity\AbstractRepository;
6
-
7 6
 use Asylamba\Modules\Zeus\Model\Player;
8 7
 
9 8
 class PlayerRepository extends AbstractRepository {
Please login to merge, or discard this patch.
system/Classes/Configuration/Configuration.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
     
15 15
     /**
16 16
      * @param FileLocatorInterface $locator
17
-     * @param string $format
18 17
      */
19 18
     public function __construct(FileLocatorInterface $locator) {
20 19
         $this->locator = $locator;
Please login to merge, or discard this patch.
system/Modules/Ares/Manager/CommanderManager.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -23,9 +23,7 @@  discard block
 block discarded – undo
23 23
 use Asylamba\Modules\Demeter\Manager\ColorManager;
24 24
 use Asylamba\Modules\Hermes\Manager\NotificationManager;
25 25
 use Asylamba\Classes\Container\ArrayList;
26
-
27 26
 use Asylamba\Classes\Worker\EventDispatcher;
28
-
29 27
 use Asylamba\Modules\Athena\Model\OrbitalBase;
30 28
 use Asylamba\Modules\Gaia\Model\Place;
31 29
 use Asylamba\Modules\Ares\Model\Report;
@@ -34,9 +32,7 @@  discard block
 block discarded – undo
34 32
 use Asylamba\Modules\Ares\Model\Commander;
35 33
 use Asylamba\Modules\Gaia\Resource\SquadronResource;
36 34
 use Asylamba\Modules\Demeter\Model\Color;
37
-
38 35
 use Asylamba\Classes\Scheduler\RealTimeActionScheduler;
39
-
40 36
 use Asylamba\Modules\Gaia\Event\PlaceOwnerChangeEvent;
41 37
 
42 38
 class CommanderManager
Please login to merge, or discard this patch.
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -349,6 +349,10 @@  discard block
 block discarded – undo
349 349
 		$this->entityManager->commit();
350 350
 	}
351 351
 
352
+	/**
353
+	 * @param integer $rStartPlace
354
+	 * @param double $duration
355
+	 */
352 356
 	public function move(Commander $commander, $rDestinationPlace, $rStartPlace, $travelType, $travelLength, $duration) {
353 357
 		$commander->rDestinationPlace = $rDestinationPlace;
354 358
 		$commander->rStartPlace = $rStartPlace;
@@ -376,6 +380,9 @@  discard block
 block discarded – undo
376 380
 		return TRUE;
377 381
 	}
378 382
 	
383
+	/**
384
+	 * @param boolean $isWinner
385
+	 */
379 386
 	public function resultOfFight(Commander $commander, $isWinner, $enemyCommander) {
380 387
 		if ($isWinner == TRUE) {
381 388
 			$this->setEarnedExperience($commander, $enemyCommander);
@@ -919,6 +926,12 @@  discard block
 block discarded – undo
919 926
 	# HELPER
920 927
 
921 928
 	# comeBack
929
+
930
+	/**
931
+	 * @param Commander $commander
932
+	 * @param Place $commanderPlace
933
+	 * @param PlayerBonus $playerBonus
934
+	 */
922 935
 	public function comeBack(Place $place, $commander, $commanderPlace, $playerBonus) {
923 936
 		$length   = Game::getDistance($place->getXSystem(), $commanderPlace->getXSystem(), $place->getYSystem(), $commanderPlace->getYSystem());
924 937
 		$duration = Game::getTimeToTravel($commanderPlace, $place, $playerBonus->bonus);
@@ -928,6 +941,10 @@  discard block
 block discarded – undo
928 941
 		$this->move($commander, $commander->rBase, $place->id, Commander::BACK, $length, $duration);
929 942
 	}
930 943
 
944
+	/**
945
+	 * @param Commander $commander
946
+	 * @param PlayerBonus $playerBonus
947
+	 */
931 948
 	private function lootAnEmptyPlace(Place $place, $commander, $playerBonus) {
932 949
 		$bonus = $playerBonus->bonus->get(PlayerBonus::SHIP_CONTAINER);
933 950
 	
@@ -943,6 +960,11 @@  discard block
 block discarded – undo
943 960
 		LiveReport::$resources = $resourcesLooted;
944 961
 	}
945 962
 
963
+	/**
964
+	 * @param Commander $commander
965
+	 * @param PlayerBonus $playerBonus
966
+	 * @param OrbitalBase $placeBase
967
+	 */
946 968
 	private function lootAPlayerPlace($commander, $playerBonus, $placeBase) {
947 969
 		$bonus = $playerBonus->bonus->get(PlayerBonus::SHIP_CONTAINER);
948 970
 
@@ -962,6 +984,11 @@  discard block
 block discarded – undo
962 984
 		}
963 985
 	}
964 986
 
987
+	/**
988
+	 * @param Commander $commander
989
+	 * @param \Asylamba\Modules\Zeus\Model\Player $player
990
+	 * @param \Asylamba\Modules\Zeus\Model\Player $enemyPlayer
991
+	 */
965 992
 	private function startFight(Place $place, $commander, $player, $enemyCommander = NULL, $enemyPlayer = NULL, $pvp = FALSE) {
966 993
 		if ($pvp == TRUE) {
967 994
 			$commander->setArmy();
Please login to merge, or discard this patch.
system/Modules/Gaia/Model/Place.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
     }
350 350
     
351 351
     /**
352
-     * @return float
352
+     * @return integer
353 353
      */
354 354
 	public function getXSystem()
355 355
     {
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
     }
369 369
     
370 370
     /**
371
-     * @return float
371
+     * @return integer
372 372
      */
373 373
 	public function getYSystem()
374 374
     {
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
     }
559 559
     
560 560
     /**
561
-     * @return int
561
+     * @return string
562 562
      */
563 563
 	public function getPoints()
564 564
     {
Please login to merge, or discard this patch.