@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | return $this->createForm( |
| 41 | 41 | OrdersType::class, |
| 42 | 42 | $orders, |
| 43 | - ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'POST',] |
|
| 43 | + ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'POST', ] |
|
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $this->addRolesAction($editForm, $entity); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - return [$entityName => $entity, 'edit_form' => $editForm->createView(),]; |
|
| 66 | + return [$entityName => $entity, 'edit_form' => $editForm->createView(), ]; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -117,22 +117,22 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | protected function abstractPrintAction(Orders $orders, $from) |
| 119 | 119 | { |
| 120 | - $file = $from . '-' . $orders->getId() . '.pdf'; |
|
| 120 | + $file = $from.'-'.$orders->getId().'.pdf'; |
|
| 121 | 121 | $company = $this->getDoctrine()->getManager()->getRepository('AppBundle:Company')->find(1); |
| 122 | 122 | // Create and save the PDF file to print |
| 123 | 123 | $html = $this->renderView( |
| 124 | - 'AppBundle:' . $from . ':print.pdf.twig', |
|
| 124 | + 'AppBundle:'.$from.':print.pdf.twig', |
|
| 125 | 125 | ['articles' => $orders->getArticles(), 'orders' => $orders, 'company' => $company, ] |
| 126 | 126 | ); |
| 127 | 127 | return new Response( |
| 128 | 128 | $this->get('knp_snappy.pdf')->getOutputFromHtml( |
| 129 | 129 | $html, |
| 130 | - $this->get('app.helper.controller')->getArray((string)date('d/m/y - H:i:s'), '') |
|
| 130 | + $this->get('app.helper.controller')->getArray((string) date('d/m/y - H:i:s'), '') |
|
| 131 | 131 | ), |
| 132 | 132 | 200, |
| 133 | 133 | array( |
| 134 | 134 | 'Content-Type' => 'application/pdf', |
| 135 | - 'Content-Disposition' => 'attachment; filename="' . $file . '"' |
|
| 135 | + 'Content-Disposition' => 'attachment; filename="'.$file.'"' |
|
| 136 | 136 | ) |
| 137 | 137 | ); |
| 138 | 138 | } |