Stability++ #216
Annotations
4 warnings
server-tests:
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;
}
|
server-tests:
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);
|
server-tests:
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++) {
|
server-tests:
server/src/Traits/Player/MovementTrait.php#L235
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
// do initial (one-shot) gravity bump
$newY = $this->calculateGravity($target, 1);
$candidate->setY($newY);
- $target->setY($newY);
+
$looseFloor = true;
}
}
|