@@ -42,12 +42,12 @@ |
||
42 | 42 | public function revertHistory(Trick $trick, $historyId, Request $request) |
43 | 43 | { |
44 | 44 | $submittedToken = $request->request->get('_token'); |
45 | - if (!$this->isCsrfTokenValid('revert-trick' . $historyId, $submittedToken)) { |
|
45 | + if (!$this->isCsrfTokenValid('revert-trick'.$historyId, $submittedToken)) { |
|
46 | 46 | throw new RedirectException($this->generateUrl('home'), 'Bad CSRF Token'); |
47 | 47 | } |
48 | 48 | |
49 | 49 | $this->trickHistory->revertToHistory($trick->getId(), $historyId); |
50 | - $this->addFlash(FlashMessageCategory::SUCCESS, 'Reverted ' . $trick->getName()); |
|
50 | + $this->addFlash(FlashMessageCategory::SUCCESS, 'Reverted '.$trick->getName()); |
|
51 | 51 | return $this->redirectToRoute('trick.show', [ |
52 | 52 | 'id' => $trick->getId(), |
53 | 53 | 'slug' => $trick->getSlug(), |