From c9df43d209b01c5ac4dd05cfda22450d362dac47 Mon Sep 17 00:00:00 2001 From: Jens Schuppe Date: Fri, 19 Jan 2024 14:30:39 +0100 Subject: [PATCH] Code style --- .../src/Controller/RegisterFormController.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/civiremote_event/src/Controller/RegisterFormController.php b/modules/civiremote_event/src/Controller/RegisterFormController.php index 98574d1..1722cee 100644 --- a/modules/civiremote_event/src/Controller/RegisterFormController.php +++ b/modules/civiremote_event/src/Controller/RegisterFormController.php @@ -30,11 +30,11 @@ class RegisterFormController extends ControllerBase { - const CONTEXT_CREATE = 'create'; + public const CONTEXT_CREATE = 'create'; - const CONTEXT_UPDATE = 'update'; + public const CONTEXT_UPDATE = 'update'; - const CONTEXT_CANCEL = 'cancel'; + public const CONTEXT_CANCEL = 'cancel'; /** * @var CiviMRF $cmrf @@ -64,9 +64,7 @@ public static function create(ContainerInterface $container) { * @var CiviMRF $cmrf */ $cmrf = $container->get('civiremote_event.cmrf'); - return new static( - $cmrf - ); + return new static($cmrf); } /**