@@ 463-470 (lines=8) @@ | ||
460 | private function getFileContent(SplFileInfo $file, $needsCompress) { |
|
461 | if ($needsCompress) { |
|
462 | switch ($this->compression['algorithm']) { |
|
463 | case 'gzip': |
|
464 | return gzcompress( |
|
465 | file_get_contents( |
|
466 | $file->getRealPath() |
|
467 | ), |
|
468 | (int)$this->compression['level'], |
|
469 | ZLIB_ENCODING_GZIP |
|
470 | ); |
|
471 | case 'deflate': |
|
472 | return gzcompress( |
|
473 | file_get_contents( |
|
@@ 471-478 (lines=8) @@ | ||
468 | (int)$this->compression['level'], |
|
469 | ZLIB_ENCODING_GZIP |
|
470 | ); |
|
471 | case 'deflate': |
|
472 | return gzcompress( |
|
473 | file_get_contents( |
|
474 | $file->getRealPath() |
|
475 | ), |
|
476 | (int)$this->compression['level'], |
|
477 | ZLIB_ENCODING_DEFLATE |
|
478 | ); |
|
479 | } |
|
480 | } |
|
481 | return fopen($file->getRealPath(), 'r'); |