@@ -290,7 +290,7 @@ discard block |
||
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 |
||
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 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * Get inventory |
91 | 91 | * |
92 | - * @return string |
|
92 | + * @return Inventory |
|
93 | 93 | */ |
94 | 94 | public function getInventory() |
95 | 95 | { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Get article |
114 | 114 | * |
115 | - * @return string |
|
115 | + * @return Article |
|
116 | 116 | */ |
117 | 117 | public function getArticle() |
118 | 118 | { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | /** |
205 | 205 | * Get unit_storage |
206 | 206 | * |
207 | - * @return \AppBundle\Entity\UnitStorage |
|
207 | + * @return string |
|
208 | 208 | */ |
209 | 209 | public function getUnitStorage() |
210 | 210 | { |