CI #1226
Annotations
2 warnings
composer test:
src/Repository/PetRepository.php#L46
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
$queryBuilder->andWhere($queryBuilder->expr()->like('p.name', ':name'));
$queryBuilder->setParameter('name', '%' . $filters['name'] . '%');
}
- $countQueryBuilder = clone $queryBuilder;
+ $countQueryBuilder = $queryBuilder;
$countQueryBuilder->select($queryBuilder->expr()->count('p.id'));
$petCollection->setCount((int) $countQueryBuilder->getQuery()->getSingleScalarResult());
$itemsQueryBuilder = clone $queryBuilder;
|
composer test:
src/Repository/PetRepository.php#L51
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
$countQueryBuilder = clone $queryBuilder;
$countQueryBuilder->select($queryBuilder->expr()->count('p.id'));
$petCollection->setCount((int) $countQueryBuilder->getQuery()->getSingleScalarResult());
- $itemsQueryBuilder = clone $queryBuilder;
+ $itemsQueryBuilder = $queryBuilder;
foreach ($petCollection->getSort() as $field => $order) {
$itemsQueryBuilder->addOrderBy(\sprintf('p.%s', $field), $order);
}
|
Loading