| Conditions | 4 |
| Paths | 5 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function resolve(string $url): ?ArticleInterface |
||
| 34 | { |
||
| 35 | try { |
||
| 36 | $route = $this->matcher->match($this->getFragmentFromUrl($url, 'path')); |
||
| 37 | if (isset($route['_article_meta']) && $route['_article_meta']->getValues() instanceof ArticleInterface) { |
||
| 38 | return $route['_article_meta']->getValues(); |
||
| 39 | } |
||
| 40 | } catch (ResourceNotFoundException $e) { |
||
| 41 | return null; |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 55 |