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