Conditions | 7 |
Paths | 8 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 7 |
Changes | 0 |
1 | <?php |
||
26 | 40 | public function renderPolylineStyle(array $styles, OptionsAwareInterface $polyline) |
|
27 | { |
||
28 | 40 | if (!isset($styles['geodesic']) && $polyline->hasOption('geodisc')) { |
|
29 | 8 | $styles['geodesic'] = $polyline->getOption('geodisc'); |
|
30 | } |
||
31 | |||
32 | 40 | if (!isset($styles['color']) && $polyline->hasOption('strokeColor')) { |
|
33 | 8 | $styles['color'] = $polyline->getOption('strokeColor'); |
|
34 | } |
||
35 | |||
36 | 40 | if (!isset($styles['weight']) && $polyline->hasOption('strokeWeight')) { |
|
37 | 8 | $styles['weight'] = $polyline->getOption('strokeWeight'); |
|
38 | } |
||
39 | |||
40 | 40 | return $this->renderStyle($styles); |
|
41 | } |
||
42 | } |
||
43 |