Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
29 | 9 | public function match(DestinationInterface $destination) |
|
30 | { |
||
31 | 9 | $target = $this->sorter->getMatchingTarget($destination); |
|
32 | |||
33 | try { |
||
34 | 4 | return $this->pageRepository->getByTargetDestination($target, $destination); |
|
35 | 1 | } catch (PageException $exception) { |
|
36 | 2 | throw new MatchingException($exception->getMessage(), $exception->getCode(), $exception); |
|
37 | } |
||
38 | } |
||
39 | } |
||
40 |