@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * |
28 | 28 | * @var Request |
29 | 29 | */ |
30 | - private $request = null; |
|
30 | + private $request = null; |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Security |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | try { |
55 | 55 | |
56 | - $menu = []; |
|
56 | + $menu = []; |
|
57 | 57 | |
58 | 58 | $company = $request->query->get('myCompany', null); |
59 | 59 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | $userPeople = $currentUser->getPeople(); |
77 | 77 | |
78 | - $menu = $this->getMenuByPeople($userPeople, $myCompany); |
|
78 | + $menu = $this->getMenuByPeople($userPeople, $myCompany); |
|
79 | 79 | |
80 | 80 | |
81 | 81 | return new JsonResponse([ |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | // build query |
109 | 109 | |
110 | - $sql = 'SELECT menu.*, |
|
110 | + $sql = 'SELECT menu.*, |
|
111 | 111 | category.name AS category_label, |
112 | 112 | category.color AS category_color, |
113 | 113 | routes.route AS route, |
@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | |
127 | 127 | $params = []; |
128 | 128 | |
129 | - $params['myCompany'] = $myCompany->getId(); |
|
130 | - $params['userPeople'] = $userPeople->getId(); |
|
129 | + $params['myCompany'] = $myCompany->getId(); |
|
130 | + $params['userPeople'] = $userPeople->getId(); |
|
131 | 131 | // execute query |
132 | 132 | |
133 | 133 | $result = $connection->executeQuery($sql, $params)->fetchAllAssociative(); |