| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class CompressContent |
||
| 9 | { |
||
| 10 | public function handle($request, $next) |
||
| 26 | } |
||
| 27 | |||
| 28 | private function setZlib(): void |
||
| 29 | { |
||
| 30 | ini_set('zlib.output_compression', 'Off'); |
||
| 31 | } |
||
| 32 | |||
| 33 | private function headers() |
||
| 34 | { |
||
| 35 | return [ |
||
| 36 | 'Content-Type' => 'application/x-download', |
||
| 37 | 'Content-Encoding'=> 'gzip', |
||
| 38 | 'Cache-Control' => 'no-cache, no-store, max-age=0, must-revalidate', |
||
| 39 | 'Pragma' => 'no-cache', |
||
| 40 | ]; |
||
| 41 | } |
||
| 42 | |||
| 43 | private function compress($data) { |
||
| 45 | } |
||
| 46 | } |
||
| 47 |