| Conditions | 2 |
| Paths | 4 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 17 | protected function setStorage($storageParams = 'volume'): void |
|
| 23 | { |
||
| 24 | try { |
||
| 25 | 17 | $instance = StorageSingleton::getInstance(); |
|
| 26 | 17 | $instance->clearStorage(); |
|
| 27 | 17 | $instance->getStorage($storageParams); |
|
| 28 | 1 | } catch (StorageException $ex) { |
|
| 29 | 1 | throw new MapperException($ex->getMessage(), $ex->getCode(), $ex); |
|
| 30 | } |
||
| 54 |