Completed
Pull Request — master (#69)
by Laurent
15:31
created
src/AppBundle/Controller/GroupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/AppBundle/Controller/InventoryController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/AppBundle/Controller/DeliveriesController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.