No implicit nullables, code style updates #370
Annotations
5 warnings
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
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) {
|
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;
}
}
|
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) {
|
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;
}
}
}
|
This job succeeded
Loading