Stability++ #227
Annotations
1 error and 3 warnings
server-tests
Process completed with exit code 1.
|
server-tests:
server/src/Core/HitBox.php#L47
Escaped Mutant for Mutator "IntegerNegation":
@@ @@
return 50;
}
if ($this->player->getArmorType()->hasArmor()) {
- return 60;
+ return -60;
}
return 30;
}
|
server-tests:
server/src/Core/HitBox.php#L50
Escaped Mutant for Mutator "IntegerNegation":
@@ @@
if ($this->player->getArmorType()->hasArmor()) {
return 60;
}
- return 30;
+ return -30;
}
public function registerHit(Bullet $bullet): void
{
|
server-tests:
server/src/Traits/Player/MovementTrait.php#L194
Escaped Mutant for Mutator "LogicalNot":
@@ @@
private function processMovement(int $moveX, int $moveZ, Point $current): Point
{
// If single direction move in opposite direction than previous (counter strafing) we stop
- if (!($moveX !== 0 && $moveZ !== 0) && ($moveX !== 0 && $this->lastMoveX === -$moveX || $moveZ !== 0 && $this->lastMoveZ === -$moveZ)) {
+ if ($moveX !== 0 && $moveZ !== 0 && ($moveX !== 0 && $this->lastMoveX === -$moveX || $moveZ !== 0 && $this->lastMoveZ === -$moveZ)) {
$this->velocityPermil = 0;
return $current;
}
|