Test Failed
Branch develop (47adb0)
by Stone
04:36
created
src/Controller/Trick/Admin/DeleteTrickController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 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
 
Please login to merge, or discard this patch.
src/Controller/Trick/Admin/EditTrickController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         $videoForm = $this->createForm(VideoTypeForm::class, $trickVideo);
103 103
         $videoForm->handleRequest($request);
104 104
 
105
-        if($videoForm->isSubmitted() && $videoForm->isValid()){
105
+        if ($videoForm->isSubmitted() && $videoForm->isValid()) {
106 106
 //            dump($trick);
107 107
 //            dump($trickVideo);
108 108
 //            dd("TODO : video submitted ");
Please login to merge, or discard this patch.
src/Controller/Media/DeleteImageController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,12 +38,12 @@
 block discarded – undo
38 38
     public function deleteTrickImage(Image $image, Request $request)
39 39
     {
40 40
         $submittedToken = $request->request->get('_token');
41
-        if (!$this->isCsrfTokenValid('delete-image' . $image->getId(), $submittedToken)) {
41
+        if (!$this->isCsrfTokenValid('delete-image'.$image->getId(), $submittedToken)) {
42 42
             throw new RedirectException($this->generateUrl('home'), 'Bad CSRF Token');
43 43
         }
44 44
 
45 45
         $trick = $image->getTrick();
46
-        if ($trick !== null){
46
+        if ($trick !== null) {
47 47
             $event = new ImageDeleteEvent($image, $image->getTrick());
48 48
             $this->dispatcher->dispatch(ImageDeleteEvent::NAME, $event);
49 49
         }
Please login to merge, or discard this patch.
src/Controller/Media/DeleteVideoController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public function deleteTrickImage(video $video, Request $request)
39 39
     {
40 40
         $submittedToken = $request->request->get('_token');
41
-        if (!$this->isCsrfTokenValid('delete-video' . $video->getId(), $submittedToken)) {
41
+        if (!$this->isCsrfTokenValid('delete-video'.$video->getId(), $submittedToken)) {
42 42
             throw new RedirectException($this->generateUrl('home'), 'Bad CSRF Token');
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/Entity/Video.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,11 +90,11 @@
 block discarded – undo
90 90
         return $this;
91 91
     }
92 92
 
93
-    public function getVideoIntegrationCode(){
93
+    public function getVideoIntegrationCode() {
94 94
         return str_replace("{{code}}", $this->getCode(), $this->getVideoType()->getCode());
95 95
     }
96 96
 
97
-    public function getVideoIntegrationImage(){
97
+    public function getVideoIntegrationImage() {
98 98
         return str_replace("{{code}}", $this->getCode(), $this->getVideoType()->getImageCode());
99 99
     }
100 100
 
Please login to merge, or discard this patch.
src/EventSubscriber/Video/VideoAddedSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $this->em->persist($trick);
26 26
         $this->em->flush();
27 27
 
28
-        $this->addFlash(FlashMessageCategory::SUCCESS, 'Video '. $video->getTitle() .' Added');
28
+        $this->addFlash(FlashMessageCategory::SUCCESS, 'Video '.$video->getTitle().' Added');
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
src/EventSubscriber/Video/VideoDeletedSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $this->em->persist($trick);
24 24
         $this->em->flush();
25 25
 
26
-        $this->addFlash(FlashMessageCategory::SUCCESS, 'Video '. $video->getTitle() .' deleted');
26
+        $this->addFlash(FlashMessageCategory::SUCCESS, 'Video '.$video->getTitle().' deleted');
27 27
     }
28 28
 
29 29
     /**
Please login to merge, or discard this patch.
src/Repository/ImageRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
19 19
         parent::__construct($registry, Image::class);
20 20
     }
21 21
 
22
-    public function findBySearchQuery(array $searchTerms){
22
+    public function findBySearchQuery(array $searchTerms) {
23 23
 
24 24
         $queryBuilder = $this->createQueryBuilder('p');
25 25
 
26 26
         foreach ($searchTerms as $key => $term) {
27 27
             $queryBuilder
28
-                ->orWhere('p.title LIKE :term_' . $key)
29
-                ->setParameter('term_' . $key, '%' . $term . '%');
28
+                ->orWhere('p.title LIKE :term_'.$key)
29
+                ->setParameter('term_'.$key, '%'.$term.'%');
30 30
 
31 31
         }
32 32
 
Please login to merge, or discard this patch.
src/Repository/VideoRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
19 19
         parent::__construct($registry, Video::class);
20 20
     }
21 21
 
22
-    public function findBySearchQuery(array $searchTerms){
22
+    public function findBySearchQuery(array $searchTerms) {
23 23
 
24 24
         $queryBuilder = $this->createQueryBuilder('p');
25 25
 
26 26
         foreach ($searchTerms as $key => $term) {
27 27
             $queryBuilder
28
-                ->orWhere('p.title LIKE :term_' . $key)
29
-                ->setParameter('term_' . $key, '%' . $term . '%');
28
+                ->orWhere('p.title LIKE :term_'.$key)
29
+                ->setParameter('term_'.$key, '%'.$term.'%');
30 30
 
31 31
         }
32 32
 
Please login to merge, or discard this patch.