Test Failed
Push — master ( 06b832...1d5d2c )
by Waaaaaaaaaa
02:30
created

Config::setPath()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 1
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A Config::addTag() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Logfile;
4
5
class Config
6
{
7
    use PathTrait;
0 ignored issues
show
Bug introduced by
The type Logfile\PathTrait was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
    protected $tags = [];
10
11
    protected $user = [];
12
13
    protected $release = '';
14
15
    public function hasTags(): bool
16
    {
17
        return !empty($this->tags);
18
    }
19
20
    public function getTags(): array
21
    {
22
        return $this->tags;
23
    }
24
25
    public function setTags(array $tags): void
26
    {
27
        $this->tags = $tags;
28
    }
29
30
    public function addTag(string $key, $value): void
31
    {
32
        $this->tags[$key] = $value;
33
    }
34
35
    public function hasUser(): bool
36
    {
37
        return !empty($this->user);
38
    }
39
40
    public function getUser(): array
41
    {
42
        return $this->user;
43
    }
44
45
    public function setUser(array $user): void
46
    {
47
        $this->user = $user;
48
    }
49
50
    public function hasRelease(): bool
51
    {
52
        return !empty($this->release);
53
    }
54
55
    public function getRelease(): string
56
    {
57
        return $this->release;
58
    }
59
60
    public function setRelease(string $release)
61
    {
62
        $this->release = $release;
63
    }
64
}
65