fix badge url #1124
Annotations
3 warnings
src/Repository/PetRepository.php#L45
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
if (isset($filters['name'])) {
$queryBuilder->field('name')->text($filters['name']);
}
- $countQueryBuilder = clone $queryBuilder;
+ $countQueryBuilder = $queryBuilder;
$countQueryBuilder->count();
$petCollection->setCount($countQueryBuilder->getQuery()->execute());
$itemsQueryBuilder = clone $queryBuilder;
|
src/Repository/PetRepository.php#L50
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
$countQueryBuilder = clone $queryBuilder;
$countQueryBuilder->count();
$petCollection->setCount($countQueryBuilder->getQuery()->execute());
- $itemsQueryBuilder = clone $queryBuilder;
+ $itemsQueryBuilder = $queryBuilder;
foreach ($petCollection->getSort() as $field => $order) {
if (!$order) {
continue;
|
src/Repository/PetRepository.php#L54
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$itemsQueryBuilder = clone $queryBuilder;
foreach ($petCollection->getSort() as $field => $order) {
if (!$order) {
- continue;
+ break;
}
$itemsQueryBuilder->sort($field, $order);
}
|
This job failed
Loading