From fec6ae5db5c59edeb4c710f2a34375ffafa6d8a9 Mon Sep 17 00:00:00 2001 From: tracer Date: Fri, 4 Nov 2022 10:32:59 +0100 Subject: [PATCH] minor code improvements --- src/Repository/PagesRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Repository/PagesRepository.php b/src/Repository/PagesRepository.php index 933342f..db741c6 100644 --- a/src/Repository/PagesRepository.php +++ b/src/Repository/PagesRepository.php @@ -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(); }