@@ -50,13 +50,13 @@ discard block |
||
50 | 50 | $typeClass, |
51 | 51 | $inventory, |
52 | 52 | ['action' => $this->generateUrl('inventory_update', ['id' => $inventory->getId()]), |
53 | - 'method' => 'PUT',] |
|
53 | + 'method' => 'PUT', ] |
|
54 | 54 | ); |
55 | 55 | $deleteForm = $this->createDeleteForm($inventory->getId(), 'inventory_delete'); |
56 | 56 | |
57 | 57 | $return = ['editForm' => $editForm, 'inventory' => $inventory, 'zoneStorages' => $zoneStorages, |
58 | 58 | 'edit_form' => $editForm->createView(), |
59 | - 'delete_form' => $deleteForm->createView(),]; |
|
59 | + 'delete_form' => $deleteForm->createView(), ]; |
|
60 | 60 | return $return; |
61 | 61 | } |
62 | 62 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | return $this->createForm( |
73 | 73 | InventoryType::class, |
74 | 74 | $inventory, |
75 | - ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'PUT',] |
|
75 | + ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'PUT', ] |
|
76 | 76 | ); |
77 | 77 | } |
78 | 78 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $deleteForm = $this->createDeleteForm($inventory->getId(), 'inventory_delete'); |
82 | 82 | |
83 | 83 | return ['inventory' => $inventory, 'zoneStorages' => $zoneStorages, 'inventoryArticles' => $inventoryArticles, |
84 | - 'delete_form' => $deleteForm->createView(),]; |
|
84 | + 'delete_form' => $deleteForm->createView(), ]; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $this->getDoctrine()->getManager()->flush(); |
159 | 159 | |
160 | 160 | $return = $this->redirectToRoute('inventory_edit', ['id' => $inventory->getId(), |
161 | - 'zoneStorages' => $return['zoneStorages'],]); |
|
161 | + 'zoneStorages' => $return['zoneStorages'], ]); |
|
162 | 162 | } |
163 | 163 | return $return; |
164 | 164 | } |
@@ -176,13 +176,13 @@ discard block |
||
176 | 176 | public function validAction(Inventory $inventory) |
177 | 177 | { |
178 | 178 | $validForm = $this->createForm(InventoryValidType::class, $inventory, array( |
179 | - 'action' => $this->generateUrl('inventory_close', ['id' => $inventory->getId(),]), |
|
179 | + 'action' => $this->generateUrl('inventory_close', ['id' => $inventory->getId(), ]), |
|
180 | 180 | 'method' => 'PUT', |
181 | 181 | )); |
182 | 182 | $deleteForm = $this->createDeleteForm($inventory->getId(), 'inventory_delete'); |
183 | 183 | |
184 | 184 | return ['inventory' => $inventory, 'valid_form' => $validForm->createView(), |
185 | - 'delete_form' => $deleteForm->createView(),]; |
|
185 | + 'delete_form' => $deleteForm->createView(), ]; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $deleteForm = $this->createDeleteForm($inventory->getId(), 'inventory_delete'); |
209 | 209 | |
210 | 210 | $return = ['inventory' => $inventory, 'valid_form' => $validForm->createView(), |
211 | - 'delete_form' => $deleteForm->createView(),]; |
|
211 | + 'delete_form' => $deleteForm->createView(), ]; |
|
212 | 212 | |
213 | 213 | if ($validForm->handleRequest($request)->isValid()) { |
214 | 214 | $inventory->setStatus(3); |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | */ |
252 | 252 | public function printAction(Inventory $inventory) |
253 | 253 | { |
254 | - $file = $inventory->getDate()->format('Ymd') . '-inventory.pdf'; |
|
254 | + $file = $inventory->getDate()->format('Ymd').'-inventory.pdf'; |
|
255 | 255 | // Create and save the PDF file to print |
256 | 256 | $html = $this->renderView( |
257 | 257 | 'AppBundle:Stocks/Inventory:print.pdf.twig', |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | ->getArray((string) $inventory->getDate()->format('d/m/Y'), '- Inventaire -') |
265 | 265 | ), |
266 | 266 | 200, |
267 | - ['Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="' . $file . '"',] |
|
267 | + ['Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="'.$file.'"', ] |
|
268 | 268 | ); |
269 | 269 | } |
270 | 270 | |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | ->getArray((string) $inventory->getDate()->format('d/m/Y'), '- Inventaire -') |
291 | 291 | ), |
292 | 292 | 200, |
293 | - ['Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="prepare.pdf"',] |
|
293 | + ['Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="prepare.pdf"', ] |
|
294 | 294 | ); |
295 | 295 | } |
296 | 296 | |
@@ -310,12 +310,12 @@ discard block |
||
310 | 310 | if ($inventoryStyle == 'global') { |
311 | 311 | $html = $this->renderView( |
312 | 312 | 'AppBundle:Stocks/Inventory:list-global.pdf.twig', |
313 | - ['articles' => $articles, 'daydate' => $inventory->getDate(),] |
|
313 | + ['articles' => $articles, 'daydate' => $inventory->getDate(), ] |
|
314 | 314 | ); |
315 | 315 | } else { |
316 | 316 | $html = $this->renderView( |
317 | 317 | 'AppBundle:Stocks/Inventory:list-ordered.pdf.twig', |
318 | - ['articles' => $articles, 'zonestorage' => $zoneStorages, 'daydate' => $inventory->getDate(),] |
|
318 | + ['articles' => $articles, 'zonestorage' => $zoneStorages, 'daydate' => $inventory->getDate(), ] |
|
319 | 319 | ); |
320 | 320 | } |
321 | 321 | return $html; |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | // Récupérer les articles du fournisseur. |
68 | 68 | $articles = $etm->getRepository('AppBundle:Settings\Article')->getArticleFromSupplier($supplier); |
69 | - return ['supplier' => $supplier, 'articles' => $articles, 'delete_form' => $deleteForm->createView(),]; |
|
69 | + return ['supplier' => $supplier, 'articles' => $articles, 'delete_form' => $deleteForm->createView(), ]; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -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\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); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function buildForm(FormBuilderInterface $builder, array $options) |
32 | 32 | { |
33 | 33 | $builder |
34 | - ->add('name', null, ['label' => 'form.group_name', 'translation_domain' => 'FOSUserBundle',]); |
|
34 | + ->add('name', null, ['label' => 'form.group_name', 'translation_domain' => 'FOSUserBundle', ]); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -33,15 +33,15 @@ discard block |
||
33 | 33 | { |
34 | 34 | $builder |
35 | 35 | ->add('username', 'filter_text', ['label' => 'form.username', 'translation_domain' => 'FOSUserBundle', |
36 | - 'attr' => ['class' => 'pull-right',],]) |
|
36 | + 'attr' => ['class' => 'pull-right', ], ]) |
|
37 | 37 | ->add('email', 'filter_text', ['label' => 'form.email', 'translation_domain' => 'FOSUserBundle', |
38 | - 'attr' => ['class' => 'pull-right',],]) |
|
39 | - ->add('enabled', 'filter_boolean', ['label' => 'Autorisé',]) |
|
38 | + 'attr' => ['class' => 'pull-right', ], ]) |
|
39 | + ->add('enabled', 'filter_boolean', ['label' => 'Autorisé', ]) |
|
40 | 40 | ->add( |
41 | 41 | 'groups', |
42 | 42 | 'filter_entity', |
43 | 43 | ['label' => 'Groupes', 'class' => 'AppBundle\Entity\Staff\Group', 'expanded' => true, |
44 | - 'multiple' => true, 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { |
|
44 | + 'multiple' => true, 'apply_filter' => function(QueryInterface $filterQuery, $field, $values) { |
|
45 | 45 | $query = $filterQuery->getQueryBuilder(); |
46 | 46 | $query->leftJoin($field, 'm'); |
47 | 47 | // Filter results using orWhere matching ID |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | public function configureOptions(OptionsResolver $resolver) |
60 | 60 | { |
61 | 61 | $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Staff\User', 'csrf_protection' => false, |
62 | - 'validation_groups' => ['filter'], 'method' => 'GET',]); |
|
62 | + 'validation_groups' => ['filter'], 'method' => 'GET', ]); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
@@ -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', |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function configureOptions(OptionsResolver $resolver) |
43 | 43 | { |
44 | - $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Stocks\InventoryArticles',]); |
|
44 | + $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Stocks\InventoryArticles', ]); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $builder |
37 | 37 | ->add('date', DateType::class, ['label' => 'gestock.date', 'widget' => 'single_text', |
38 | 38 | 'format' => 'dd MMM yyyy', 'html5' => false, 'input' => 'datetime', |
39 | - 'attr' => ['class' => 'form-control',],]) |
|
39 | + 'attr' => ['class' => 'form-control', ], ]) |
|
40 | 40 | ->add('status', HiddenType::class) |
41 | 41 | ->add('amount', HiddenType::class) |
42 | 42 | ; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function configureOptions(OptionsResolver $resolver) |
49 | 49 | { |
50 | - $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Stocks\Inventory',]); |
|
50 | + $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Stocks\Inventory', ]); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |