@@ -117,7 +117,7 @@ discard block |
||
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 |
||
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 |
@@ -60,7 +60,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |