Add/min max #351
Annotations
5 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Static Analysis:
src/Helper/RunningVariance.php#L74
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
$this->min = $value;
$this->max = $value;
} else {
- if ($value < $this->min) {
+ if ($value <= $this->min) {
$this->min = $value;
}
if ($value > $this->max) {
|
Static Analysis:
src/Helper/RunningVariance.php#L78
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
if ($value < $this->min) {
$this->min = $value;
}
- if ($value > $this->max) {
+ if ($value >= $this->max) {
$this->max = $value;
}
}
|
Static Analysis:
src/Helper/RunningVariance.php#L176
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
$this->mean = $this->count * $this->mean / $count + $other->count * $other->mean / $count;
$this->m2 = $this->m2 + $other->m2 + $delta ** 2 * $this->count * $other->count / $count;
$this->count = $count;
- if ($other->min < $this->min) {
+ if ($other->min <= $this->min) {
$this->min = $other->min;
}
if ($other->max > $this->max) {
|
Static Analysis:
src/Helper/RunningVariance.php#L180
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
if ($other->min < $this->min) {
$this->min = $other->min;
}
- if ($other->max > $this->max) {
+ if ($other->max >= $this->max) {
$this->max = $other->max;
}
}
}
|
Loading