| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 2.5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 14 | protected function getStorage(): IStorage |
|
| 38 | { |
||
| 39 | try { |
||
| 40 | 14 | return StorageSingleton::getInstance()->getStorage('volume'); |
|
| 41 | // @codeCoverageIgnoreStart |
||
| 42 | } catch (StorageException $ex) { |
||
| 43 | // means you have failed storage - larger problem than "only" unknown storage |
||
| 44 | throw new MapperException($ex->getMessage(), $ex->getCode(), $ex); |
||
| 45 | } |
||
| 54 |