@@ -35,16 +35,13 @@ |
||
35 | 35 | { |
36 | 36 | if($menuItem['href']) { |
37 | 37 | return strpos($menuItem['href'], 'http') === 0 ? $menuItem['href'] : '/' . $menuItem['href']; |
38 | - } |
|
39 | - elseif($menuItem['article_slug']) { |
|
38 | + } elseif($menuItem['article_slug']) { |
|
40 | 39 | $params = ['segment_1' => $menuItem['category_slug'], 'segment_2' => $menuItem['article_slug']]; |
41 | 40 | |
42 | 41 | return $this->url->__invoke('post', $params); |
43 | - } |
|
44 | - elseif($menuItem['category_slug']) { |
|
42 | + } elseif($menuItem['category_slug']) { |
|
45 | 43 | return $this->url->__invoke('category', ['category' => $menuItem['category_slug']]); |
46 | - } |
|
47 | - else { |
|
44 | + } else { |
|
48 | 45 | return '#'; |
49 | 46 | } |
50 | 47 | } |
@@ -25,8 +25,7 @@ |
||
25 | 25 | $this->newsletterService->registerNew($email); |
26 | 26 | |
27 | 27 | return new JsonResponse(['message' => 'Uspešno ste se prijavili.']); |
28 | - } |
|
29 | - catch(\Exception $e) { |
|
28 | + } catch(\Exception $e) { |
|
30 | 29 | return new JsonResponse(['message' => $e->getMessage()], $e->getCode()); |
31 | 30 | } |
32 | 31 | } |
@@ -73,8 +73,7 @@ |
||
73 | 73 | $attendees = $this->meetupService->getMeetupAttendees($parts[count($parts) - 2]); |
74 | 74 | shuffle($attendees); |
75 | 75 | } |
76 | - } |
|
77 | - catch(\Exception $e) { |
|
76 | + } catch(\Exception $e) { |
|
78 | 77 | } |
79 | 78 | |
80 | 79 | return new HtmlResponse($this->template->render('web::event', [ |