Completed
Push — master ( bc803d...ad38cf )
by Sebastian
04:42
created

Zip::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 8
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 8
loc 8
rs 9.4285
cc 1
eloc 6
nc 1
nop 1
1
<?php
2
namespace phpbu\App\Backup\Target\Compression;
3
4
/**
5
 * Zip
6
 *
7
 * @package    phpbu
8
 * @subpackage Backup
9
 * @author     Sebastian Feldmann <[email protected]>
10
 * @copyright  Sebastian Feldmann <[email protected]>
11
 * @license    https://opensource.org/licenses/MIT The MIT License (MIT)
12
 * @link       http://phpbu.de/
13
 * @since      Class available since Release 3.2.1
14
 */
15 View Code Duplication
class Zip extends Abstraction
0 ignored issues
show
Duplication introduced by
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...
16
{
17
    /**
18
     * Zip constructor.
19
     *
20
     * @param string $path
21
     */
22
    public function __construct($path = null)
23
    {
24
        parent::__construct($path);
25
        $this->cmd      = 'zip';
26
        $this->suffix   = 'zip';
27
        $this->mimeType = 'application/zip';
28
        $this->pipeable = false;
29
    }
30
}
31