Stability++ #218
Annotations
6 warnings
Check infection mutation framework min percentage:
server/src/Core/Game.php#L466
Escaped Mutant for Mutator "Assignment":
@@ @@
RoundEndReason::TIME_RUNS_OUT, RoundEndReason::BOMB_DEFUSED => GameException::invalid((string) $roundEndEvent->reason->value),
};
} elseif ($this->bombPlanted || !$player->isAlive()) {
- $amount += $this->score->getMoneyLossBonus(true);
+ $amount = $this->score->getMoneyLossBonus(true);
}
return $amount;
}
|
Check infection mutation framework min percentage:
server/src/Core/PathFinder.php#L155
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
$prevNavmesh = $navmesh->hash();
$navmesh->setFrom($candidate);
- $this->convertToNavMeshNode($navmesh);
+
if ($this->getGraph()->getNodeById($navmesh->hash())) {
return $navmesh;
}
|
Check infection mutation framework min percentage:
server/src/Core/PathFinder.php#L206
Escaped Mutant for Mutator "Coalesce":
@@ @@
}
$this->visited[$currentKey] = true;
$currentNodeOrNull = $this->graph->getNodeById($currentKey);
- $currentNode = $currentNodeOrNull ?? new Node($currentKey, $current);
+ $currentNode = new Node($currentKey, $current) ?? $currentNodeOrNull;
$hasNeighbour = false;
foreach ($this->moves as $angle => $move) {
$candidate->setFrom($current);
|
Check infection mutation framework min percentage:
server/src/Core/PathFinder.php#L220
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$newNode = $this->graph->getNodeById($newNeighbour->hash());
if ($newNode === null) {
$newNode = new Node($newNeighbour->hash(), $newNeighbour);
- $this->graph->addNode($newNode);
+
}
$this->graph->addEdge(new DirectedEdge($currentNode, $newNode, 1));
$queue->enqueue($newNeighbour);
|
Check infection mutation framework min percentage:
server/src/Core/World.php#L520
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
$this->activeSmokes[$event->id] = $event;
$this->game->addSmokeEvent($event);
}
- public function processFlammableExplosion(Player $thrower, Point $epicentre, Flammable $item): void
+ protected function processFlammableExplosion(Player $thrower, Point $epicentre, Flammable $item): void
{
if ($this->grenadeNavMesh === null) {
$this->regenerateNavigationMeshes();
|
Check infection mutation framework min percentage:
server/src/Event/ThrowEvent.php#L83
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
return;
}
if ($this->tickMax > 0) {
- $point->addY(-$this->radius);
+
$this->tickMax = 0;
}
for ($i = 1; $i <= ceil(Util::GRAVITY * 2); $i++) {
|
Loading