| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 21 | 1 | public function find_all(): Categories { |
|
| 22 | 1 | $terms = $this->get_terms( |
|
| 23 | [ |
||
| 24 | 1 | 'taxonomy' => Entity::TAXONOMY, |
|
| 25 | 'hide_empty' => false, |
||
| 26 | ], |
||
| 27 | ); |
||
| 28 | |||
| 29 | 1 | return new Categories( |
|
| 30 | 1 | ...array_map( static fn ( $term ) => ( new Entity() )->set_term( $term ), $terms ), |
|
| 31 | ); |
||
| 35 |