Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 3 | public function get($id) |
|
29 | { |
||
30 | try { |
||
31 | 3 | $result = $this->container->get($id); |
|
32 | 3 | } catch (\Exception $prev) { |
|
33 | 1 | throw AcclimateContainerException::fromPrevious($id, $prev); |
|
34 | } |
||
35 | |||
36 | 2 | if ($result === null) { |
|
37 | 1 | throw AcclimateNotFoundException::fromPrevious($id); |
|
38 | } |
||
39 | |||
40 | 1 | return $result; |
|
41 | } |
||
42 | |||
48 |