Completed
Push — Order ( f4bad4...a8dbff )
by Laurent
03:01
created
src/AppBundle/Controller/AbstractOrdersController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             $this->addRolesAction($editForm, $entity);
47 47
         }
48 48
 
49
-        return [$entityName => $entity, 'edit_form' => $editForm->createView(),];
49
+        return [$entityName => $entity, 'edit_form' => $editForm->createView(), ];
50 50
     }
51 51
 
52 52
     /**
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         return $this->createForm(
62 62
             OrdersType::class,
63 63
             $orders,
64
-            ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'POST',]
64
+            ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'POST', ]
65 65
         );
66 66
     }
67 67
 
@@ -74,22 +74,22 @@  discard block
 block discarded – undo
74 74
      */
75 75
     protected function abstractPrintAction(Orders $orders, $from)
76 76
     {
77
-        $file = $from . '-' . $orders->getId() . '.pdf';
77
+        $file = $from.'-'.$orders->getId().'.pdf';
78 78
         $company = $this->getDoctrine()->getManager()->getRepository('AppBundle:Company')->find(1);
79 79
         // Create and save the PDF file to print
80 80
         $html = $this->renderView(
81
-            'AppBundle:' . $from . ':print.pdf.twig',
81
+            'AppBundle:'.$from.':print.pdf.twig',
82 82
             ['articles' => $orders->getArticles(), 'orders' => $orders, 'company' => $company, ]
83 83
         );
84 84
         return new Response(
85 85
             $this->get('knp_snappy.pdf')->getOutputFromHtml(
86 86
                 $html,
87
-                $this->get('app.helper.controller')->getArray((string)date('d/m/y - H:i:s'), '')
87
+                $this->get('app.helper.controller')->getArray((string) date('d/m/y - H:i:s'), '')
88 88
             ),
89 89
             200,
90 90
             array(
91 91
                 'Content-Type' => 'application/pdf',
92
-                'Content-Disposition' => 'attachment; filename="' . $file . '"'
92
+                'Content-Disposition' => 'attachment; filename="'.$file.'"'
93 93
             )
94 94
         );
95 95
     }
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/OrdersArticlesType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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(
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                     'currency' => 'EUR',
93 93
                     'label' => 'settings.price',
94 94
                     'translation_domain' => 'gs_articles',
95
-                    'attr'=> ['class' => 'form-control text-right', 'readonly' => true,],
95
+                    'attr'=> ['class' => 'form-control text-right', 'readonly' => true, ],
96 96
                 )
97 97
             )
98 98
             ->add(
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                     'label' => 'seizure.total',
119 119
                     'translation_domain' => 'gs_orders',
120 120
                     'mapped' => false,
121
-                    'attr'=> ['class' => 'form-control text-right', 'readonly' => true,]
121
+                    'attr'=> ['class' => 'form-control text-right', 'readonly' => true, ]
122 122
                 )
123 123
             )
124 124
         ;
Please login to merge, or discard this patch.