@@ -100,7 +100,7 @@ |
||
100 | 100 | $form = $this->createForm(GroupType::class, $group); |
101 | 101 | AbstractController::addRoles($form, $group); |
102 | 102 | $form->handleRequest($request); |
103 | - $return = ['group' => $group, 'form' => $form->createView(),]; |
|
103 | + $return = ['group' => $group, 'form' => $form->createView(), ]; |
|
104 | 104 | |
105 | 105 | if ($form->isValid()) { |
106 | 106 | $etm = $this->getDoctrine()->getManager(); |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | */ |
300 | 300 | public function printAction(Inventory $inventory) |
301 | 301 | { |
302 | - $file = $inventory->getDate()->format('Ymd') . '-inventory.pdf'; |
|
302 | + $file = $inventory->getDate()->format('Ymd').'-inventory.pdf'; |
|
303 | 303 | // Create and save the PDF file to print |
304 | 304 | $html = $this->renderView( |
305 | 305 | 'AppBundle:Inventory:print.pdf.twig', |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | 200, |
314 | 314 | array( |
315 | 315 | 'Content-Type' => 'application/pdf', |
316 | - 'Content-Disposition' => 'attachment; filename="' . $file . '"' |
|
316 | + 'Content-Disposition' => 'attachment; filename="'.$file.'"' |
|
317 | 317 | ) |
318 | 318 | ); |
319 | 319 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $em = $this->getDoctrine()->getManager(); |
44 | 44 | $item = $this->container->getParameter('knp_paginator.page_range'); |
45 | 45 | $qb = $em->getRepository('AppBundle:Orders')->createQueryBuilder('o'); |
46 | - $qb->where('o.delivdate >= ' . date('Y-m-d')); |
|
46 | + $qb->where('o.delivdate >= '.date('Y-m-d')); |
|
47 | 47 | $qb->andWhere('o.status = 1'); |
48 | 48 | |
49 | 49 | $paginator = $this->get('knp_paginator')->paginate($qb, $request->query->get('page', 1), $item); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | public function printAction(Orders $orders) |
135 | 135 | { |
136 | - $file = 'delivery-' . $orders->getId() . '.pdf'; |
|
136 | + $file = 'delivery-'.$orders->getId().'.pdf'; |
|
137 | 137 | $company = $this->getDoctrine()->getManager()->getRepository('AppBundle:Company')->find(1); |
138 | 138 | // Create and save the PDF file to print |
139 | 139 | $html = $this->renderView( |
@@ -143,12 +143,12 @@ discard block |
||
143 | 143 | return new Response( |
144 | 144 | $this->get('knp_snappy.pdf')->getOutputFromHtml( |
145 | 145 | $html, |
146 | - $this->getArray((string)date('d/m/y - H:i:s'), '') |
|
146 | + $this->getArray((string) date('d/m/y - H:i:s'), '') |
|
147 | 147 | ), |
148 | 148 | 200, |
149 | 149 | array( |
150 | 150 | 'Content-Type' => 'application/pdf', |
151 | - 'Content-Disposition' => 'attachment; filename="' . $file . '"' |
|
151 | + 'Content-Disposition' => 'attachment; filename="'.$file.'"' |
|
152 | 152 | ) |
153 | 153 | ); |
154 | 154 | } |