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