Passed
Push — develop ( bfd649...019da5 )
by Stone
04:16
created
src/EventSubscriber/Trick/TrickCreatedSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         $trick = $event->getEntity();
20 20
         $this->sendToDatabase($event);
21
-        $this->addFlash(FlashMessageCategory::SUCCESS, 'Trick ' . $trick->getName() . ' saved');
21
+        $this->addFlash(FlashMessageCategory::SUCCESS, 'Trick '.$trick->getName().' saved');
22 22
     }
23 23
 
24 24
     /**
Please login to merge, or discard this patch.
src/Controller/Trick/Admin/DeleteTrickController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,18 +40,18 @@
 block discarded – undo
40 40
     {
41 41
 
42 42
         $submittedToken = $request->request->get('_token');
43
-        if (!$this->isCsrfTokenValid('delete-trick' . $trick->getId(), $submittedToken)) {
43
+        if (!$this->isCsrfTokenValid('delete-trick'.$trick->getId(), $submittedToken)) {
44 44
             throw new RedirectException($this->generateUrl('home'), 'Bad CSRF Token');
45 45
         }
46 46
 
47 47
         $referer = $request->headers->get('referer');
48
-        $url = $this->generateUrl('trick.show',['id'=>$trick->getId(), 'slug'=>$trick->getSlug()]);
48
+        $url = $this->generateUrl('trick.show', ['id'=>$trick->getId(), 'slug'=>$trick->getSlug()]);
49 49
 
50 50
         $event = new TrickDeletedEvent($trick);
51 51
         $this->dispatcher->dispatch(TrickDeletedEvent::NAME, $event);
52 52
 
53 53
         //If we came from the show page, go to home page
54
-        if(mb_substr_count($referer, $url)>0)
54
+        if (mb_substr_count($referer, $url) > 0)
55 55
         {
56 56
             return $this->redirectToRoute('home');
57 57
         }
Please login to merge, or discard this patch.
src/Migrations/Version20190314215226.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
24 24
 
25 25
         $this->addSql('DROP INDEX UNIQ_389B7835E237E06 ON tag');
26
-           }
26
+            }
27 27
 
28 28
     public function down(Schema $schema) : void
29 29
     {
@@ -31,5 +31,5 @@  discard block
 block discarded – undo
31 31
         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
32 32
 
33 33
         $this->addSql('CREATE UNIQUE INDEX UNIQ_389B7835E237E06 ON tag (name)');
34
-           }
34
+            }
35 35
 }
Please login to merge, or discard this patch.