| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 274 | public function getStorage(string $name): TokenStorageInterface|string|Autowire |
|
| 45 | { |
||
| 46 | 274 | if (!isset($this->config['storages'][$name])) { |
|
| 47 | 2 | throw new InvalidArgumentException( |
|
| 48 | 2 | \sprintf('Token storage `%s` is not defined.', $name) |
|
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 52 | 272 | return $this->config['storages'][$name]; |
|
| 53 | } |
||
| 60 |