Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
29 | 12 | public function build(Trait_ $trait): TraitDefinition |
|
30 | { |
||
31 | 12 | $useStatements = $this->useStatementsBuilder->build($trait); |
|
32 | 12 | return new TraitDefinition( |
|
33 | 12 | new Name((string) $trait->namespacedName), |
|
34 | 12 | $this->membersBuilder->methods($trait->getMethods(), $useStatements), |
|
35 | 12 | $this->membersBuilder->properties($trait->stmts, $trait->getMethod('__construct'), $useStatements), |
|
36 | 12 | $this->buildTraits($trait->stmts) |
|
37 | ); |
||
40 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths