| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 2 | private function getKey(): string |
|
| 34 | { |
||
| 35 | 2 | if ($this->key === null) { |
|
| 36 | 2 | $key = $this->stuConfig->getGameSettings()->getMapSettings()->getEncryptionKey(); |
|
| 37 | |||
| 38 | 2 | if ($key === null) { |
|
| 39 | 1 | throw new RuntimeException('encoding key is missing in configuration'); |
|
| 40 | } |
||
| 41 | |||
| 42 | 1 | $this->key = $key; |
|
| 43 | } |
||
| 44 | |||
| 45 | 1 | return $this->key; |
|
| 46 | } |
||
| 48 |