Completed
Push — sf2.7 ( 27ae11...c3193d )
by Laurent
03:16
created
src/AppBundle/Controller/InventoryController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
21 21
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
22 22
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
23
-
24 23
 use AppBundle\Entity\Inventory;
25 24
 use AppBundle\Form\Type\InventoryType;
26 25
 use AppBundle\Entity\InventoryArticles;
Please login to merge, or discard this 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/Entity/InventoryArticles.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace AppBundle\Entity;
4 4
 
5 5
 use Doctrine\ORM\Mapping as ORM;
6
-use Doctrine\Common\Collections\ArrayCollection;
7 6
 
8 7
 /**
9 8
  * InventoryArticles
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
     /**
210 210
      * Get unit_storage
211 211
      *
212
-     * @return \AppBundle\Entity\UnitStorage
212
+     * @return string
213 213
      */
214 214
     public function getUnitStorage()
215 215
     {
Please login to merge, or discard this patch.
src/AppBundle/Entity/Inventory.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     /**
155 155
      * Get amount
156 156
      *
157
-     * @return string
157
+     * @return double
158 158
      */
159 159
     public function getAmount()
160 160
     {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
      * Get status
179 179
      *
180
-     * @return integer
180
+     * @return boolean
181 181
      */
182 182
     public function getStatus()
183 183
     {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     /**
211 211
      * Get articles
212 212
      *
213
-     * @return \Doctrine\Common\Collections\Collection
213
+     * @return string
214 214
      */
215 215
     public function getArticles()
216 216
     {
Please login to merge, or discard this patch.