Passed
Push — develop ( 464bf2...2bd2b7 )
by Stone
09:02
created
src/Controller/Trick/Admin/RevertHistoryTrickController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.