@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | */ |
288 | 288 | public function printAction(Inventory $inventory) |
289 | 289 | { |
290 | - $file = $inventory->getDate()->format('Ymd') . '-inventory.pdf'; |
|
290 | + $file = $inventory->getDate()->format('Ymd').'-inventory.pdf'; |
|
291 | 291 | // Create and save the PDF file to print |
292 | 292 | $html = $this->renderView( |
293 | 293 | 'AppBundle:Inventory:print.pdf.twig', |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | ->getArray((string) $inventory->getDate()->format('d/m/Y'), '- Inventaire -') |
301 | 301 | ), |
302 | 302 | 200, |
303 | - ['Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="' . $file . '"',] |
|
303 | + ['Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="'.$file.'"', ] |
|
304 | 304 | ); |
305 | 305 | } |
306 | 306 | |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | ->getArray((string) $inventory->getDate()->format('d/m/Y'), '- Inventaire -') |
327 | 327 | ), |
328 | 328 | 200, |
329 | - ['Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="prepare.pdf"',] |
|
329 | + ['Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="prepare.pdf"', ] |
|
330 | 330 | ); |
331 | 331 | } |
332 | 332 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | return $this->createForm( |
40 | 40 | OrdersType::class, |
41 | 41 | $orders, |
42 | - ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'POST',] |
|
42 | + ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'POST', ] |
|
43 | 43 | ); |
44 | 44 | } |
45 | 45 | |
@@ -52,22 +52,22 @@ discard block |
||
52 | 52 | */ |
53 | 53 | protected function abstractPrintAction(Orders $orders, $from) |
54 | 54 | { |
55 | - $file = $from . '-' . $orders->getId() . '.pdf'; |
|
55 | + $file = $from.'-'.$orders->getId().'.pdf'; |
|
56 | 56 | $company = $this->getDoctrine()->getManager()->getRepository('AppBundle:Company')->find(1); |
57 | 57 | // Create and save the PDF file to print |
58 | 58 | $html = $this->renderView( |
59 | - 'AppBundle:' . $from . ':print.pdf.twig', |
|
59 | + 'AppBundle:'.$from.':print.pdf.twig', |
|
60 | 60 | ['articles' => $orders->getArticles(), 'orders' => $orders, 'company' => $company, ] |
61 | 61 | ); |
62 | 62 | return new Response( |
63 | 63 | $this->get('knp_snappy.pdf')->getOutputFromHtml( |
64 | 64 | $html, |
65 | - $this->get('app.helper.controller')->getArray((string)date('d/m/y - H:i:s'), '') |
|
65 | + $this->get('app.helper.controller')->getArray((string) date('d/m/y - H:i:s'), '') |
|
66 | 66 | ), |
67 | 67 | 200, |
68 | 68 | array( |
69 | 69 | 'Content-Type' => 'application/pdf', |
70 | - 'Content-Disposition' => 'attachment; filename="' . $file . '"' |
|
70 | + 'Content-Disposition' => 'attachment; filename="'.$file.'"' |
|
71 | 71 | ) |
72 | 72 | ); |
73 | 73 | } |