Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | 7 | public function get($key, $default = null): ViewInterface |
|
30 | { |
||
31 | try { |
||
32 | 7 | return parent::get($key, $default); |
|
33 | 2 | } catch (\Throwable $e) { |
|
34 | 2 | throw new CollectionItemNotFoundException( |
|
35 | 2 | \sprintf('`%s` collection does not have item with name `%s`', \get_class($this), $key) |
|
36 | ); |
||
41 |