Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
10 | protected function generateDownloadFileResponse($filePath) |
||
11 | { |
||
12 | return $this->generateBinaryResponse($filePath, [ |
||
13 | 'Content-Disposition' => 'attachment; filename=' . basename($filePath), |
||
14 | 'Content-Transfer-Encoding' => 'Binary', |
||
15 | 'Content-Description' => 'File Transfer', |
||
16 | 'Pragma' => 'public', |
||
17 | 'Expires' => '0', |
||
18 | 'Cache-Control' => 'must-revalidate', |
||
19 | ]); |
||
20 | } |
||
21 | |||
36 |