Completed
Pull Request — master (#81)
by
unknown
01:18
created

GzipCompressor::getCompressorCommand()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace Spatie\DbDumper\Compressors;
4
5
class GzipCompressor extends Compressor
6
{
7
    protected $extension = '.gz';
8
9
    public function getCompressorCommand()
10
    {
11
        $level = $this->level ? " -{$this->level}" : '';
12
13
        return 'gzip'.$level;
14
    }
15
16
}
17