@@ -195,6 +195,9 @@ |
||
195 | 195 | } |
196 | 196 | } |
197 | 197 | |
198 | + /** |
|
199 | + * @param string $entityName |
|
200 | + */ |
|
198 | 201 | private function testReturnParam($entity, $entityName) { |
199 | 202 | if ($entityName === 'company' || $entityName === 'settings' || $entityName === 'tva') { |
200 | 203 | $param = array('id' => $entity->getId()); |
@@ -189,7 +189,7 @@ |
||
189 | 189 | * |
190 | 190 | * @param \Symfony\Component\HttpFoundation\Request $request Form request |
191 | 191 | * @param \AppBundle\Entity\Supplier $supplier Supplier to desactivate |
192 | - * @return array |
|
192 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
193 | 193 | */ |
194 | 194 | public function changeAction(Request $request, Supplier $supplier) |
195 | 195 | { |