Passed
Pull Request — master (#9)
by ANTHONIUS
03:11
created

BackupManifest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A add() 0 2 1
1
<?php
2
3
/*
4
 * This file is part of the dotfiles project.
5
 *
6
 *     (c) Anthonius Munthi <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Dotfiles\Core\Util;
13
14
use Dotfiles\Core\DI\Parameters;
15
use Symfony\Component\Console\Output\OutputInterface;
16
17
class BackupManifest
18
{
19
    /**
20
     * @var array
21
     */
22
    private $backups;
0 ignored issues
show
introduced by
The private property $backups is not used, and could be removed.
Loading history...
23
24
    /**
25
     * @var OutputInterface
26
     */
27
    private $output;
0 ignored issues
show
introduced by
The private property $output is not used, and could be removed.
Loading history...
28
29
    public function __construct(
30
        Parameters $parameters
0 ignored issues
show
Unused Code introduced by
The parameter $parameters is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

30
        /** @scrutinizer ignore-unused */ Parameters $parameters

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
31
    ) {
32
    }
33
34
    public function add($file)
0 ignored issues
show
Unused Code introduced by
The parameter $file is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

34
    public function add(/** @scrutinizer ignore-unused */ $file)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
35
    {
36
    }
37
}
38