Passed
Branch feature/tags (cc2dab)
by Stone
06:13
created
src/DataFixtures/UserFixtures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
         //Adding extra users
66 66
 
67
-        for($i=0; $i<10; $i++){
67
+        for ($i = 0; $i < 10; $i++) {
68 68
             $user = new User();
69 69
             $user->setEmail('user'.$i.'@localhost.com')
70 70
                 ->setUserName('user'.$i)
Please login to merge, or discard this patch.
src/Security/UserAutoLogon.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function autoLogon(User $user): Event
51 51
     {
52 52
         $request = $this->requestStack->getCurrentRequest();
53
-        if($request === null){
53
+        if ($request === null) {
54 54
             throw new Exception('request is null');
55 55
         }
56 56
         //Login user
Please login to merge, or discard this patch.
src/Entity/Category.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         return $this;
89 89
     }
90 90
 
91
-    public function __toString(){
91
+    public function __toString() {
92 92
         return $this->Name;
93 93
     }
94 94
 
Please login to merge, or discard this patch.
src/Controller/Trick/SearchTrickController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $criteria = array();
68 68
         if ($categoryId !== "") {
69 69
             $category = $this->categoryRepository->find($categoryId);
70
-            if($category->getSlug() !== $slug){
70
+            if ($category->getSlug() !== $slug) {
71 71
                 return $this->redirectToRoute('trick.search', [
72 72
                     'id' => $category->getId(),
73 73
                     'slug' => $category->getSlug()
Please login to merge, or discard this patch.
src/Controller/Trick/TricksByTagController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
7 7
 use Symfony\Component\Routing\Annotation\Route;
8 8
 
9
-class TricksByTagController extends AbstractController{
9
+class TricksByTagController extends AbstractController {
10 10
 
11 11
     /**
12 12
      * @Route("/trick/tag/{id}-{slug}", name="trick.tag", methods={"GET"})
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
      * @param string $slug
15 15
      * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
16 16
      */
17
-    public function showTricksByTag(Tag $tag, string $slug){
17
+    public function showTricksByTag(Tag $tag, string $slug) {
18 18
 
19
-        if($tag->getSlug() !== $slug){
19
+        if ($tag->getSlug() !== $slug) {
20 20
             return $this->redirectToRoute('trick.tag', [
21 21
                 'id' => $tag->getId(),
22 22
                 'slug' => $tag->getSlug()
Please login to merge, or discard this patch.