Skip to content

Commit

Permalink
run cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
clemzarch committed Jun 23, 2023
1 parent 3d43379 commit 810d437
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Constraint/Pipeline/IteratesLike.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ private function asIterator(iterable $iterable): \Iterator
if ($iterable instanceof \Iterator) {

Check warning on line 33 in src/Constraint/Pipeline/IteratesLike.php

View workflow job for this annotation

GitHub Actions / infection

Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (\is_array($iterable)) { return new \ArrayIterator($iterable); } - if ($iterable instanceof \Iterator) { + if (true) { return $iterable; } return new \IteratorIterator($iterable);

Check warning on line 33 in src/Constraint/Pipeline/IteratesLike.php

View workflow job for this annotation

GitHub Actions / infection

Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (\is_array($iterable)) { return new \ArrayIterator($iterable); } - if ($iterable instanceof \Iterator) { + if (false) { return $iterable; } return new \IteratorIterator($iterable);

Check warning on line 33 in src/Constraint/Pipeline/IteratesLike.php

View workflow job for this annotation

GitHub Actions / infection

Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (\is_array($iterable)) { return new \ArrayIterator($iterable); } - if ($iterable instanceof \Iterator) { + if (true) { return $iterable; } return new \IteratorIterator($iterable);

Check warning on line 33 in src/Constraint/Pipeline/IteratesLike.php

View workflow job for this annotation

GitHub Actions / infection

Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if (\is_array($iterable)) { return new \ArrayIterator($iterable); } - if ($iterable instanceof \Iterator) { + if (false) { return $iterable; } return new \IteratorIterator($iterable);
return $iterable;
}

return new \IteratorIterator($iterable);
}

Expand Down
1 change: 1 addition & 0 deletions src/Constraint/Pipeline/PipelineExtractsLike.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ private function asIterator(iterable $iterable): \Iterator
if ($iterable instanceof \Iterator) {
return $iterable;
}

return new \IteratorIterator($iterable);
}

Expand Down
1 change: 1 addition & 0 deletions src/Constraint/Pipeline/PipelineLoadsLike.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ private function asIterator(iterable $iterable): \Iterator
if ($iterable instanceof \Iterator) {
return $iterable;
}

return new \IteratorIterator($iterable);
}

Expand Down
1 change: 1 addition & 0 deletions src/Constraint/Pipeline/PipelineTransformsLike.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ private function asIterator(iterable $iterable): \Iterator
if ($iterable instanceof \Iterator) {
return $iterable;
}

return new \IteratorIterator($iterable);
}

Expand Down
1 change: 1 addition & 0 deletions src/Constraint/Pipeline/PipelineWritesFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ private function asIterator(iterable $iterable): \Iterator
if ($iterable instanceof \Iterator) {
return $iterable;
}

return new \IteratorIterator($iterable);
}

Expand Down

0 comments on commit 810d437

Please sign in to comment.