Passed
Push — master ( 1416ae...b5a8b1 )
by Luis
54s queued 13s
created

NoPropertiesBuilder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 3 1
A fromPromotedProperties() 0 3 1
1
<?php declare(strict_types=1);
2
/**
3
 * PHP version 8.1
4
 *
5
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
6
 */
7
8
namespace PhUml\Parser\Code\Builders\Members;
9
10
use PhUml\Code\UseStatements;
0 ignored issues
show
Bug introduced by
The type PhUml\Code\UseStatements 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...
11
12
/**
13
 * It will ignore the properties of a definition, and therefore its filters
14
 */
15
final class NoPropertiesBuilder implements PropertiesBuilder
16
{
17 5
    public function build(array $parsedProperties, UseStatements $useStatements): array
18
    {
19 5
        return [];
20
    }
21
22 5
    public function fromPromotedProperties(array $promotedProperties, UseStatements $useStatements): array
23
    {
24 5
        return [];
25
    }
26
}
27