Passed
Push — master ( 33631f...10f39b )
by Jan
03:09
created
src/Controller/PartController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $em->persist($new_part);
118 118
             $em->flush();
119 119
             $this->addFlash('success', $translator->trans('part.created_flash'));
120
-            return $this->redirectToRoute('part_edit',['id' => $new_part->getID()]);
120
+            return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]);
121 121
         }
122 122
 
123 123
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             $em->persist($new_part);
149 149
             $em->flush();
150 150
             $this->addFlash('success', $translator->trans('part.created_flash'));
151
-            return $this->redirectToRoute('part_edit',['id' => $new_part->getID()]);
151
+            return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]);
152 152
         }
153 153
 
154 154
 
Please login to merge, or discard this patch.
src/Services/EntityURLGenerator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function infoURL($entity) : string
62 62
     {
63
-        if($entity instanceof Part)
63
+        if ($entity instanceof Part)
64 64
         {
65 65
             return $this->urlGenerator->generate('part_info', ['id' => $entity->getID()]);
66 66
         }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function editURL($entity) : string
73 73
     {
74
-        if($entity instanceof Part)
74
+        if ($entity instanceof Part)
75 75
         {
76 76
             return $this->urlGenerator->generate('part_edit', ['id' => $entity->getID()]);
77 77
         }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     public function createURL($entity) : string
84 84
     {
85
-        if($entity instanceof Part)
85
+        if ($entity instanceof Part)
86 86
         {
87 87
             return $this->urlGenerator->generate('part_new');
88 88
         }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     public function cloneURL($entity) : string
94 94
     {
95
-        if($entity instanceof Part)
95
+        if ($entity instanceof Part)
96 96
         {
97 97
             return $this->urlGenerator->generate('part_clone', ['id' => $entity->getID()]);
98 98
         }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $href = $this->infoURL($entity);
113 113
 
114
-        if($entity instanceof NamedDBElement)
114
+        if ($entity instanceof NamedDBElement)
115 115
         {
116 116
             return sprintf('<a href="%s">%s</a>', $href, $entity->getName());
117 117
         }
Please login to merge, or discard this patch.