@@ -257,6 +257,9 @@ |
||
257 | 257 | } |
258 | 258 | } |
259 | 259 | |
260 | + /** |
|
261 | + * @param string $entityName |
|
262 | + */ |
|
260 | 263 | private function testReturnParam($entity, $entityName) |
261 | 264 | { |
262 | 265 | $entityArray = ['company', 'settings', 'group', 'tva']; |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | $this->addRolesAction($form, $entityNew); |
160 | 160 | } |
161 | 161 | $form->handleRequest($request); |
162 | - $return = [$entity => $entityNew, 'form' => $form->createView(),]; |
|
162 | + $return = [$entity => $entityNew, 'form' => $form->createView(), ]; |
|
163 | 163 | |
164 | 164 | if ($form->isValid()) { |
165 | 165 | $etm = $this->getDoctrine()->getManager(); |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | { |
296 | 296 | $session = new Session(); |
297 | 297 | |
298 | - return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null; |
|
298 | + return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null; |
|
299 | 299 | } |
300 | 300 | |
301 | 301 | /** |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | } else { |
320 | 320 | $alias = current($qbd->getDQLPart('from'))->getAlias(); |
321 | 321 | } |
322 | - $qbd->orderBy($alias . '.' . $order['field'], $order['type']); |
|
322 | + $qbd->orderBy($alias.'.'.$order['field'], $order['type']); |
|
323 | 323 | } |
324 | 324 | } |
325 | 325 |
@@ -269,7 +269,7 @@ |
||
269 | 269 | * @Method("GET") |
270 | 270 | * @Template() |
271 | 271 | * |
272 | - * @param \AppBundle\Entity\Inventory $orders Inventory item to print |
|
272 | + * @param Orders $orders Inventory item to print |
|
273 | 273 | * @return \Symfony\Component\HttpFoundation\Response |
274 | 274 | */ |
275 | 275 | public function printAction(Orders $orders) |
@@ -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); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | EntityType::class, |
50 | 50 | array( |
51 | 51 | 'class' => 'AppBundle:FamilyLog', |
52 | - 'query_builder' => function (EntityRepository $er) { |
|
52 | + 'query_builder' => function(EntityRepository $er) { |
|
53 | 53 | return $er->createQueryBuilder('f') |
54 | 54 | ->orderBy('f.path', 'ASC'); |
55 | 55 | }, |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | EntityType::class, |
103 | 103 | array( |
104 | 104 | 'class' => 'AppBundle:Supplier', |
105 | - 'query_builder' => function (EntityRepository $er) { |
|
105 | + 'query_builder' => function(EntityRepository $er) { |
|
106 | 106 | return $er->createQueryBuilder('s') |
107 | 107 | ->where('s.active = 1'); |
108 | 108 | }, |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | EntityType::class, |
144 | 144 | array( |
145 | 145 | 'class' => 'AppBundle:FamilyLog', |
146 | - 'query_builder' => function (EntityRepository $er) { |
|
146 | + 'query_builder' => function(EntityRepository $er) { |
|
147 | 147 | return $er->createQueryBuilder('f') |
148 | 148 | ->orderBy('f.path', 'ASC'); |
149 | 149 | }, |
@@ -39,7 +39,7 @@ |
||
39 | 39 | EntityType::class, |
40 | 40 | array( |
41 | 41 | 'class' => 'AppBundle:Supplier', |
42 | - 'query_builder' => function (EntityRepository $er) { |
|
42 | + 'query_builder' => function(EntityRepository $er) { |
|
43 | 43 | return $er->createQueryBuilder('s') |
44 | 44 | ->where('s.active = 1'); |
45 | 45 | }, |
@@ -37,14 +37,14 @@ |
||
37 | 37 | { |
38 | 38 | $builder->addEventListener( |
39 | 39 | FormEvents::PRE_SET_DATA, |
40 | - function (FormEvent $event) { |
|
40 | + function(FormEvent $event) { |
|
41 | 41 | $form = $event->getForm(); |
42 | 42 | $articles = $event->getData(); |
43 | 43 | |
44 | 44 | $formOptions = array( |
45 | 45 | 'class' => 'AppBundle:Supplier', |
46 | 46 | 'query_builder' => |
47 | - function (EntityRepository $er) use ($articles) { |
|
47 | + function(EntityRepository $er) use ($articles) { |
|
48 | 48 | return $er->getSupplierForReassign($articles[0]->getSupplier()); |
49 | 49 | }, |
50 | 50 | 'multiple' => false, |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function buildForm(FormBuilderInterface $builder, array $options) |
37 | 37 | { |
38 | - $builder ->add('username', null, ['label' => "Nom d'utilisateur", 'attr' => ['class' => 'form-control'],]) |
|
38 | + $builder ->add('username', null, ['label' => "Nom d'utilisateur", 'attr' => ['class' => 'form-control'], ]) |
|
39 | 39 | ->add('email', EmailType::class, array( |
40 | 40 | 'required' => false, |
41 | 41 | 'label' => 'E-mail', |
@@ -43,7 +43,7 @@ |
||
43 | 43 | 'format' => 'dd MMM yyyy', |
44 | 44 | 'html5' => false, |
45 | 45 | 'input' => 'datetime', |
46 | - 'attr' => ['class' => 'form-control',], |
|
46 | + 'attr' => ['class' => 'form-control', ], |
|
47 | 47 | ) |
48 | 48 | ) |
49 | 49 | ->add('status', HiddenType::class) |
@@ -68,7 +68,7 @@ |
||
68 | 68 | 'empty_data' => '0,000', |
69 | 69 | 'label' => 'settings.quantity', |
70 | 70 | 'translation_domain' => 'gs_articles', |
71 | - 'attr'=> ['class' => 'form-control text-right',], |
|
71 | + 'attr'=> ['class' => 'form-control text-right', ], |
|
72 | 72 | ) |
73 | 73 | ) |
74 | 74 | ->add( |