Stability++ #227
Annotations
1 error and 3 warnings
Check infection mutation framework min percentage
Process completed with exit code 1.
|
Check infection mutation framework min percentage:
server/src/Core/HitBox.php#L47
Escaped Mutant for Mutator "IntegerNegation":
@@ @@
return 50;
}
if ($this->player->getArmorType()->hasArmor()) {
- return 60;
+ return -60;
}
return 30;
}
|
Check infection mutation framework min percentage:
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
{
|
Check infection mutation framework min percentage:
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;
}
|
Loading