Skip to content

Commit

Permalink
Fix StyleCi
Browse files Browse the repository at this point in the history
  • Loading branch information
heiglandreas committed Aug 31, 2022
1 parent 60e1535 commit fb8e1ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/Event/EventApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions app/src/Event/EventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ private function editEventHostUsingForm(EventEntity $event, $hostUsername)

$values = [
'hosts_uri' => $event->getHostsUri(),
'host' => $hostUsername,
'host' => $hostUsername,
];

return $eventApi->editHost($values);
Expand Down Expand Up @@ -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'])) {
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion app/src/Event/EventHostFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])],
]
)
Expand Down

0 comments on commit fb8e1ef

Please sign in to comment.