From fb8e1ef06e2be4b1d71206f12cc5f8753028c098 Mon Sep 17 00:00:00 2001 From: Andreas Heigl Date: Wed, 31 Aug 2022 17:15:29 +0200 Subject: [PATCH] Fix StyleCi --- app/src/Event/EventApi.php | 2 +- app/src/Event/EventController.php | 8 ++++---- app/src/Event/EventHostFormType.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/Event/EventApi.php b/app/src/Event/EventApi.php index 8c162869..2c7de66a 100644 --- a/app/src/Event/EventApi.php +++ b/app/src/Event/EventApi.php @@ -115,7 +115,7 @@ public function getEvent($event_uri, $verbose = true) foreach ($event->getHosts() as $hostsInfo) { if (isset($hostsInfo->host_uri)) { $hostsInfo->username = $this->userApi->getUsername($hostsInfo->host_uri); - $hostsInfo->entity = $this->userApi->getUser($hostsInfo->host_uri); + $hostsInfo->entity = $this->userApi->getUser($hostsInfo->host_uri); } } return $event; diff --git a/app/src/Event/EventController.php b/app/src/Event/EventController.php index bd107133..11f9bb84 100644 --- a/app/src/Event/EventController.php +++ b/app/src/Event/EventController.php @@ -787,7 +787,7 @@ private function editEventHostUsingForm(EventEntity $event, $hostUsername) $values = [ 'hosts_uri' => $event->getHostsUri(), - 'host' => $hostUsername, + 'host' => $hostUsername, ]; return $eventApi->editHost($values); @@ -1020,11 +1020,11 @@ public function removeHost($friendly_name, $host_name) } $userApi = $this->getUserApi(); - $user = $userApi->getUserByUsername($host_name); + $user = $userApi->getUserByUsername($host_name); $data = [ 'hosts_uri' => $event->getHostsUri(), - 'host' => $user->getId(), + 'host' => $user->getId(), ]; if (!isset($_SESSION['user'])) { @@ -1091,7 +1091,7 @@ public function addHost($friendly_name) $result = $this->editEventHostUsingForm($event, $values['host']); if ($result instanceof EventEntity) { $userApi = $this->getUserApi(); - $user = $userApi->getUserByUsername($values['host']); + $user = $userApi->getUserByUsername($values['host']); $this->application->flash( 'message', sprintf( diff --git a/app/src/Event/EventHostFormType.php b/app/src/Event/EventHostFormType.php index d17b1714..d3faed97 100644 --- a/app/src/Event/EventHostFormType.php +++ b/app/src/Event/EventHostFormType.php @@ -62,7 +62,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) 'host', 'text', [ - 'label' => 'Add additional host', + 'label' => 'Add additional host', 'constraints' => [new Assert\NotBlank(), new Assert\Length(['min' => 2])], ] )