| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait ResolvePathTrait |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Resolves a template path. |
||
| 12 | * |
||
| 13 | * The method returns the pathname of the first file matching the path collection. The tried |
||
| 14 | * paths are collected in `$tried`. |
||
| 15 | * |
||
| 16 | * @param string[] $tries Pathname collection, as returned by {@link resolve_tries()}. |
||
| 17 | * @param string[] $tried Tried pathname collection. |
||
| 18 | */ |
||
| 19 | private function resolve_path(array $tries, array &$tried): ?string |
||
| 32 |