| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 2 | public function getEncodedMapPath(int $mapFieldType, LayerInterface $layer): string |
|
| 23 | { |
||
| 24 | 2 | $key = $this->getKey(); |
|
| 25 | |||
| 26 | 1 | return sprintf( |
|
| 27 | 1 | '%d/encoded/%s.png', |
|
| 28 | 1 | $layer->getId(), |
|
| 29 | 1 | implode("/", str_split(bin2hex(base64_encode(crypt((string)$mapFieldType, $key))), 8)) |
|
|
|
|||
| 30 | 1 | ); |
|
| 48 |