@@ -25,8 +25,8 @@ |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
28 | - * @Route("/search/{categoryId}", name="trick.search") |
|
29 | - */ |
|
28 | + * @Route("/search/{categoryId}", name="trick.search") |
|
29 | + */ |
|
30 | 30 | public function search($categoryId = "") |
31 | 31 | { |
32 | 32 | $categories = $this->categoryRepository->findAll(); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | $categories = $this->categoryRepository->findAll(); |
33 | 33 | $criteria = array(); |
34 | - if($categoryId !== ""){ |
|
34 | + if ($categoryId !== "") { |
|
35 | 35 | $criteria = array('category' => $categoryId); |
36 | 36 | } |
37 | 37 | $tricks = $this->trickRepository->findBy($criteria); |