cs-fix #1127
ci.yml
on: push
docker-compose (production container)
1m 10s
PHP 8.1
1m 9s
PHP 8.2
1m 0s
PHP 8.3
1m 28s
Annotations
9 warnings
PHP 8.2:
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;
|
PHP 8.2:
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);
}
|
PHP 8.2:
src/ServiceFactory/Framework/RouteCollectorFactory.php#L22
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
{
public function __invoke(ContainerInterface $container) : RouteCollectorInterface
{
- return new RouteCollector($container->get(ResponseFactoryInterface::class), $container->get(CallableResolverInterface::class), $container, new RequestHandler(true), null, $container->get('config')['fastroute']['cache']);
+ return new RouteCollector($container->get(ResponseFactoryInterface::class), $container->get(CallableResolverInterface::class), $container, new RequestHandler(false), null, $container->get('config')['fastroute']['cache']);
}
}
|
PHP 8.1:
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;
|
PHP 8.1:
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);
}
|
PHP 8.1:
src/ServiceFactory/Framework/RouteCollectorFactory.php#L22
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
{
public function __invoke(ContainerInterface $container) : RouteCollectorInterface
{
- return new RouteCollector($container->get(ResponseFactoryInterface::class), $container->get(CallableResolverInterface::class), $container, new RequestHandler(true), null, $container->get('config')['fastroute']['cache']);
+ return new RouteCollector($container->get(ResponseFactoryInterface::class), $container->get(CallableResolverInterface::class), $container, new RequestHandler(false), null, $container->get('config')['fastroute']['cache']);
}
}
|
PHP 8.3:
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;
|
PHP 8.3:
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);
}
|
PHP 8.3:
src/ServiceFactory/Framework/RouteCollectorFactory.php#L22
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
{
public function __invoke(ContainerInterface $container) : RouteCollectorInterface
{
- return new RouteCollector($container->get(ResponseFactoryInterface::class), $container->get(CallableResolverInterface::class), $container, new RequestHandler(true), null, $container->get('config')['fastroute']['cache']);
+ return new RouteCollector($container->get(ResponseFactoryInterface::class), $container->get(CallableResolverInterface::class), $container, new RequestHandler(false), null, $container->get('config')['fastroute']['cache']);
}
}
|