From 9cae88cf1f87b40c7ad536a283579b026576a4f3 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Fri, 25 Aug 2023 12:50:41 +0200 Subject: [PATCH] Rename EventKindController to AdminEventKindController. Cleanup --- ...ndController.php => AdminEventKindController.php} | 4 ++-- src/AppBundle/Entity/Event.php | 4 ++-- src/AppBundle/Entity/EventKind.php | 12 +++++------- 3 files changed, 9 insertions(+), 11 deletions(-) rename src/AppBundle/Controller/{EventKindController.php => AdminEventKindController.php} (98%) diff --git a/src/AppBundle/Controller/EventKindController.php b/src/AppBundle/Controller/AdminEventKindController.php similarity index 98% rename from src/AppBundle/Controller/EventKindController.php rename to src/AppBundle/Controller/AdminEventKindController.php index 7e2ed2af8..3fb785b24 100644 --- a/src/AppBundle/Controller/EventKindController.php +++ b/src/AppBundle/Controller/AdminEventKindController.php @@ -12,11 +12,11 @@ /** - * EventKind controller. + * AdminEventKind controller * * @Route("admin/event/kinds") */ -class EventKindController extends Controller +class AdminEventKindController extends Controller { /** * Lists all event kinds diff --git a/src/AppBundle/Entity/Event.php b/src/AppBundle/Entity/Event.php index 3cb0be8a7..3f1f8f273 100644 --- a/src/AppBundle/Entity/Event.php +++ b/src/AppBundle/Entity/Event.php @@ -133,9 +133,9 @@ class Event private $createdBy; /** - * @ORM\Column(type="datetime") - * * @var \DateTime + * + * @ORM\Column(type="datetime") */ private $updatedAt; diff --git a/src/AppBundle/Entity/EventKind.php b/src/AppBundle/Entity/EventKind.php index a128cd2b3..f6686a736 100644 --- a/src/AppBundle/Entity/EventKind.php +++ b/src/AppBundle/Entity/EventKind.php @@ -44,8 +44,6 @@ class EventKind private $createdAt; /** - * Define toString. - * * @return string */ public function __toString() @@ -62,7 +60,7 @@ public function setCreatedAtValue() } /** - * Get id. + * Get id * * @return int */ @@ -72,7 +70,7 @@ public function getId() } /** - * Set name. + * Set name * * @param string $name * @@ -86,7 +84,7 @@ public function setName($name) } /** - * Get name. + * Get name * * @return string */ @@ -96,7 +94,7 @@ public function getName() } /** - * Get events. + * Get events * * @return \Doctrine\Common\Collections\Collection */ @@ -106,7 +104,7 @@ public function getEvents() } /** - * Get createdAt. + * Get createdAt * * @return \DateTime */