| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | 1 | public function find_all() : Collection { |
|
| 43 | $terms = $this->get_terms( |
||
| 44 | 1 | [ |
|
| 45 | 'taxonomy' => Entity::TAXONOMY, |
||
| 46 | 'hide_empty' => false, |
||
| 47 | ] |
||
| 48 | ); |
||
| 49 | 1 | ||
| 50 | $collection = new Collection(); |
||
| 51 | 1 | ||
| 52 | 1 | foreach ( $terms as $term ) { |
|
| 53 | $collection->add_entity( ( new Entity() )->set_term( $term ) ); |
||
| 54 | } |
||
| 55 | 1 | ||
| 56 | return $collection; |
||
| 57 | } |
||
| 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