Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | class Category extends AbstractTerm { |
||
20 | |||
21 | /** |
||
22 | * Find one. |
||
23 | * |
||
24 | * @param \WP_Term|int $term The term object or id. |
||
25 | * @return Entity|null |
||
26 | 2 | */ |
|
27 | 2 | public function find_one( $term ) : ?Entity { |
|
28 | $term = $this->get_term( $term ); |
||
29 | 2 | ||
30 | 1 | if ( empty( $term ) ) { |
|
31 | return null; |
||
32 | } |
||
33 | 1 | ||
34 | return ( new Entity() )->set_term( $term ); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Find all. |
||
39 | * |
||
40 | * @return Collection |
||
41 | 1 | */ |
|
42 | 1 | public function find_all() : Collection { |
|
57 | } |
||
58 | } |
||
59 |
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