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

Zip   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 16
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 8 8 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

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