Conditions | 7 |
Paths | 8 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 7 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 10 | public function renderPolylineStyle(array $styles, OptionsAwareInterface $polyline): ?string |
|
21 | { |
||
22 | 10 | if (!isset($styles['geodesic']) && $polyline->hasOption('geodisc')) { |
|
23 | 2 | $styles['geodesic'] = $polyline->getOption('geodisc'); |
|
24 | } |
||
25 | |||
26 | 10 | if (!isset($styles['color']) && $polyline->hasOption('strokeColor')) { |
|
27 | 2 | $styles['color'] = $polyline->getOption('strokeColor'); |
|
28 | } |
||
29 | |||
30 | 10 | if (!isset($styles['weight']) && $polyline->hasOption('strokeWeight')) { |
|
31 | 2 | $styles['weight'] = $polyline->getOption('strokeWeight'); |
|
32 | } |
||
33 | |||
34 | 10 | return $this->renderStyle($styles); |
|
35 | } |
||
37 |