fix badge url #1124
ci.yml
on: push
docker-compose (production container)
1m 29s
PHP 8.1
59s
PHP 8.2
59s
PHP 8.3
1m 1s
Annotations
9 warnings
PHP 8.1:
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;
|
PHP 8.1:
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;
|
PHP 8.1:
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);
}
|
PHP 8.2:
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;
|
PHP 8.2:
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;
|
PHP 8.2:
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);
}
|
PHP 8.3:
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;
|
PHP 8.3:
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;
|
PHP 8.3:
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);
}
|