Conditions | 4 |
Paths | 5 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
34 | public function handleMap(StaticMapEvent $event) |
||
35 | { |
||
36 | $map = $event->getMap(); |
||
37 | |||
38 | if (!$map->hasMapOption('styles')) { |
||
39 | return; |
||
40 | } |
||
41 | |||
42 | $styles = []; |
||
43 | |||
44 | foreach ($map->getStaticOption('styles') as $style) { |
||
45 | $styles[] = $this->styleRenderer->render($style); |
||
46 | } |
||
47 | |||
48 | if (!empty($styles)) { |
||
49 | $event->setParameter('style', $styles); |
||
50 | } |
||
51 | } |
||
52 | |||
61 |