@@ -42,7 +42,7 @@ |
||
42 | 42 | $etm = $this->getDoctrine()->getManager(); |
43 | 43 | $item = $this->container->getParameter('knp_paginator.page_range'); |
44 | 44 | $qbd = $etm->getRepository('AppBundle:Orders')->createQueryBuilder('o'); |
45 | - $qbd->where('o.delivdate >= ' . date('Y-m-d')); |
|
45 | + $qbd->where('o.delivdate >= '.date('Y-m-d')); |
|
46 | 46 | $qbd->andWhere('o.status = 1'); |
47 | 47 | |
48 | 48 | $paginator = $this->get('knp_paginator')->paginate($qbd, $request->query->get('page', 1), $item); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | */ |
151 | 151 | public function setAmount($amount) |
152 | 152 | { |
153 | - $this->amount = (double)$amount; |
|
153 | + $this->amount = (double) $amount; |
|
154 | 154 | |
155 | 155 | return $this; |
156 | 156 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | */ |
174 | 174 | public function setTva($tva) |
175 | 175 | { |
176 | - $this->tva = (double)$tva; |
|
176 | + $this->tva = (double) $tva; |
|
177 | 177 | |
178 | 178 | return $this; |
179 | 179 | } |
@@ -100,7 +100,7 @@ |
||
100 | 100 | $form = $this->createForm(GroupType::class, $group); |
101 | 101 | AbstractController::addRolesAction($form, $group); |
102 | 102 | $form->handleRequest($request); |
103 | - $return = ['group' => $group, 'form' => $form->createView(),]; |
|
103 | + $return = ['group' => $group, 'form' => $form->createView(), ]; |
|
104 | 104 | |
105 | 105 | if ($form->isValid()) { |
106 | 106 | $etm = $this->getDoctrine()->getManager(); |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | $this->addRolesAction($form, $entityNew); |
154 | 154 | } |
155 | 155 | $form->handleRequest($request); |
156 | - $return = [$entity => $entityNew, 'form' => $form->createView(),]; |
|
156 | + $return = [$entity => $entityNew, 'form' => $form->createView(), ]; |
|
157 | 157 | |
158 | 158 | if ($form->isValid()) { |
159 | 159 | $etm = $this->getDoctrine()->getManager(); |
@@ -262,9 +262,9 @@ discard block |
||
262 | 262 | public function abstractDeleteWithArticlesAction($entity, Request $request, $entityName) |
263 | 263 | { |
264 | 264 | $etm = $this->getDoctrine()->getManager(); |
265 | - $form = $this->createDeleteForm($entity->getId(), $entityName . '_delete'); |
|
265 | + $form = $this->createDeleteForm($entity->getId(), $entityName.'_delete'); |
|
266 | 266 | $entityArticles = $etm |
267 | - ->getRepository('AppBundle:' . ucfirst($entityName) . 'Articles') |
|
267 | + ->getRepository('AppBundle:'.ucfirst($entityName).'Articles') |
|
268 | 268 | ->findBy([$entityName => $entity->getId()]); |
269 | 269 | |
270 | 270 | if ($form->handleRequest($request)->isValid()) { |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | { |
317 | 317 | $session = new Session(); |
318 | 318 | |
319 | - return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null; |
|
319 | + return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null; |
|
320 | 320 | } |
321 | 321 | |
322 | 322 | /** |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | } else { |
341 | 341 | $alias = current($qbd->getDQLPart('from'))->getAlias(); |
342 | 342 | } |
343 | - $qbd->orderBy($alias . '.' . $order['field'], $order['type']); |
|
343 | + $qbd->orderBy($alias.'.'.$order['field'], $order['type']); |
|
344 | 344 | } |
345 | 345 | } |
346 | 346 |