minor code improvements

This commit is contained in:
tracer 2022-11-04 10:32:59 +01:00
parent 1faafbc970
commit fec6ae5db5
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class PagesRepository extends ServiceEntityRepository
public function add(Pages $entity, bool $flush = true): void
{
$this->_em->persist($entity);
$this->_em->persist(entity: $entity);
if ($flush) {
$this->_em->flush();
}
@ -31,7 +31,7 @@ class PagesRepository extends ServiceEntityRepository
public function remove(Pages $entity, bool $flush = true): void
{
$this->_em->remove($entity);
$this->_em->remove(entity: $entity);
if ($flush) {
$this->_em->flush();
}