Completed
Push — sf2.7 ( 8586ff...27ae11 )
by Laurent
03:38
created
src/AppBundle/Controller/InventoryController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
      */
291 291
     public function printAction(Inventory $inventory)
292 292
     {
293
-        $file = $inventory->getDate()->format('Ymd') . '-inventory.pdf';
293
+        $file = $inventory->getDate()->format('Ymd').'-inventory.pdf';
294 294
         // Créer et enregistrer le fichier PDF à imprimer
295 295
         $html = $this->renderView(
296 296
             'AppBundle:Inventory:print.pdf.twig',
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
             200,
308 308
             array(
309 309
                 'Content-Type' => 'application/pdf',
310
-                'Content-Disposition' => 'attachment; filename="' . $file . '"'
310
+                'Content-Disposition' => 'attachment; filename="'.$file.'"'
311 311
             )
312 312
         );
313 313
     }
Please login to merge, or discard this patch.
src/AppBundle/Controller/AbstractController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function setOrder($name, $field, $type = 'ASC')
35 35
     {
36
-        $this->getRequest()->getSession()->set('sort.' . $name, array('field' => $field, 'type' => $type));
36
+        $this->getRequest()->getSession()->set('sort.'.$name, array('field' => $field, 'type' => $type));
37 37
     }
38 38
 
39 39
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $session = $this->getRequest()->getSession();
48 48
 
49
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
49
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
50 50
     }
51 51
 
52 52
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $alias = current($qb->getDQLPart('from'))->getAlias();
61 61
         if (is_array($order = $this->getOrder($name))) {
62
-            $qb->orderBy($alias . '.' . $order['field'], $order['type']);
62
+            $qb->orderBy($alias.'.'.$order['field'], $order['type']);
63 63
         }
64 64
     }
65 65
 
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
             $url = null;
93 93
             // Go to installActions
94 94
         } else {
95
-            foreach ($inventories as $inventory){
95
+            foreach ($inventories as $inventory) {
96 96
                 if ($inventory->getstatus() === 1 || $inventory->getStatus() === 2) {
97
-                    $message = $this->get('translator')->trans('yet',array(),'gs_inventories');
97
+                    $message = $this->get('translator')->trans('yet', array(), 'gs_inventories');
98 98
                     $this->addFlash('danger', $message);
99 99
                     $url = 'inventory';
100 100
                     break;
Please login to merge, or discard this patch.