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

Bzip2Compressor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCompressorCommand() 0 6 2
1
<?php
2
3
namespace Spatie\DbDumper\Compressors;
4
5
class Bzip2Compressor extends Compressor
6
{
7
    protected $extension = '.bz2';
8
9
    public function getCompressorCommand()
10
    {
11
        $level = $this->level ? " -f{$this->level}" : '';
12
13
        return 'bzip2' . $level;
14
    }
15
16
}
17