Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 2 | private function getMapGraphicPath(MapData $data): string |
|
38 | { |
||
39 | 2 | $layer = $this->layer; |
|
40 | 2 | if ($layer->isEncoded()) { |
|
41 | |||
42 | 1 | return $this->encodedMap->getEncodedMapPath( |
|
43 | 1 | $data->getMapfieldType(), |
|
44 | 1 | $layer |
|
45 | 1 | ); |
|
46 | } |
||
47 | |||
48 | 1 | return sprintf('%d/%d.png', $layer->getId(), $data->getMapfieldType()); |
|
49 | } |
||
51 |