✨ Added the ability to set Iterations #41
Annotations
11 warnings
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
src/TournamentGenerator/Containers/BaseContainer.php#L55
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
*/
public static function fromArray(array $data) : BaseContainer
{
- $container = new self(0);
+ $container = new self(-1);
$container->insertFlat(...$data);
return $container;
}
|
src/TournamentGenerator/Containers/BaseContainer.php#L55
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
*/
public static function fromArray(array $data) : BaseContainer
{
- $container = new self(0);
+ $container = new self(1);
$container->insertFlat(...$data);
return $container;
}
|
src/TournamentGenerator/Containers/BaseContainer.php#L90
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
*/
public function get() : array
{
- if (count($this->children) > 0) {
+ if (count($this->children) >= 0) {
$values = [$this->values];
foreach ($this->children as $child) {
$values[] = $child->get();
|
src/TournamentGenerator/Containers/ContainerQuery.php#L199
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function whereId(int|string $id) : ContainerQuery
{
$this->filters[] = static function ($object) use($id) {
- return $object instanceof WithId && $object->getId() === $id;
+ return true && $object->getId() === $id;
};
return $this;
}
|
src/TournamentGenerator/Containers/ContainerQuery.php#L225
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if (is_null($callback)) {
$this->sortClosure = static function ($a, $b) {
if ($a === $b) {
- return 0;
+ return -1;
}
return $a < $b ? -1 : 1;
};
|
src/TournamentGenerator/Containers/ContainerQuery.php#L225
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
if (is_null($callback)) {
$this->sortClosure = static function ($a, $b) {
if ($a === $b) {
- return 0;
+ return 1;
}
return $a < $b ? -1 : 1;
};
|
src/TournamentGenerator/Containers/ContainerQuery.php#L227
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
if ($a === $b) {
return 0;
}
- return $a < $b ? -1 : 1;
+ return $a <= $b ? -1 : 1;
};
} else {
$this->sortClosure = $callback;
|
src/TournamentGenerator/Containers/ContainerQuery.php#L227
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if ($a === $b) {
return 0;
}
- return $a < $b ? -1 : 1;
+ return $a < $b ? -2 : 1;
};
} else {
$this->sortClosure = $callback;
|
src/TournamentGenerator/Containers/ContainerQuery.php#L227
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
if ($a === $b) {
return 0;
}
- return $a < $b ? -1 : 1;
+ return $a < $b ? -1 : 2;
};
} else {
$this->sortClosure = $callback;
|
src/TournamentGenerator/Containers/ContainerQuery.php#L324
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
// Compare values
if ($property1 === $property2) {
- return 0;
+ return -1;
}
return $property1 < $property2 ? -1 : 1;
}
}
|
The logs for this run have expired and are no longer available.
Loading