This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
6
{
7
/**
8
* Get the extension used by this compressor
9
*
10
* @return string
11
*/
12
10
protected function getExtension()
13
{
14
10
return 'gz';
15
}
16
17
/**
18
* @return string
19
*/
20
11
protected function getCompression()
21
{
22
11
return CompressionType::GZIP;
23
}
24
25
/**
26
* Get the command line to compress a file
27
*
28
* @param string $fromPath
29
* @param string $toPath
30
*
31
* @return string
32
*/
33
10
protected function getCompressCommand($fromPath, $toPath)
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.