@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | $this->addRoles($form, $entityNew); |
| 120 | 120 | } |
| 121 | 121 | $form->handleRequest($request); |
| 122 | - $return = [$entity => $entityNew, 'form' => $form->createView(),]; |
|
| 122 | + $return = [$entity => $entityNew, 'form' => $form->createView(), ]; |
|
| 123 | 123 | |
| 124 | 124 | if ($form->isValid()) { |
| 125 | 125 | $etm = $this->getDoctrine()->getManager(); |
@@ -228,9 +228,9 @@ discard block |
||
| 228 | 228 | public function abstractDeleteWithArticlesAction($entity, Request $request, $entityName) |
| 229 | 229 | { |
| 230 | 230 | $etm = $this->getDoctrine()->getManager(); |
| 231 | - $form = $this->createDeleteForm($entity->getId(), $entityName . '_delete'); |
|
| 231 | + $form = $this->createDeleteForm($entity->getId(), $entityName.'_delete'); |
|
| 232 | 232 | $entityArticles = $etm |
| 233 | - ->getRepository('AppBundle:' . ucfirst($entityName) . 'Articles') |
|
| 233 | + ->getRepository('AppBundle:'.ucfirst($entityName).'Articles') |
|
| 234 | 234 | ->findBy([$entityName => $entity->getId()]); |
| 235 | 235 | |
| 236 | 236 | if ($form->handleRequest($request)->isValid()) { |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | } else { |
| 266 | 266 | $alias = current($qbd->getDQLPart('from'))->getAlias(); |
| 267 | 267 | } |
| 268 | - $qbd->orderBy($alias . '.' . $order['field'], $order['type']); |
|
| 268 | + $qbd->orderBy($alias.'.'.$order['field'], $order['type']); |
|
| 269 | 269 | } |
| 270 | 270 | } |
| 271 | 271 | |