@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; |
6 | 6 | |
7 | -trait AddFlashTrait{ |
|
7 | +trait AddFlashTrait { |
|
8 | 8 | |
9 | 9 | private $flashBag; |
10 | 10 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | if ($event->getException() instanceof RedirectException) { |
31 | 31 | $redirectResponse = new RedirectResponse($event->getException()->getRedirectResponse()); |
32 | 32 | |
33 | - if($event->getException()->getMessage() !== ""){ |
|
33 | + if ($event->getException()->getMessage() !== "") { |
|
34 | 34 | $this->addFlash(FlashMessageCategory::ERROR, $event->getException()->getMessage()); |
35 | 35 | } |
36 | 36 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | return $this->redirectResponse; |
31 | 31 | } |
32 | 32 | |
33 | - public function getRedirectMessage(){ |
|
33 | + public function getRedirectMessage() { |
|
34 | 34 | return $this->redirectMessage; |
35 | 35 | } |
36 | 36 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * @param $historyId |
39 | 39 | * Revert a trick to a history checkpoint. |
40 | 40 | */ |
41 | - public function revertToHistory($id, $historyId){ |
|
41 | + public function revertToHistory($id, $historyId) { |
|
42 | 42 | $trick = $this->em->find('App\Entity\Trick', $id); |
43 | 43 | $this->repo->revert($trick, $historyId); |
44 | 44 | $this->em->persist($trick); |