GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

renderPolylineStyle()   B
last analyzed

Complexity

Conditions 7
Paths 8

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 11
CRAP Score 7

Importance

Changes 0
Metric Value
dl 0
loc 16
ccs 11
cts 11
cp 1
rs 8.2222
c 0
b 0
f 0
cc 7
eloc 8
nc 8
nop 2
crap 7
1
<?php
2
3
/*
4
 * This file is part of the Ivory Google Map package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\GoogleMap\Helper\Renderer\Image\Overlay;
13
14
use Ivory\GoogleMap\Utility\OptionsAwareInterface;
15
16
/**
17
 * @author GeLo <[email protected]>
18
 */
19
abstract class AbstractPolylineStyleRenderer extends AbstractStyleRenderer
20
{
21
    /**
22
     * @param mixed[]               $styles
23
     * @param OptionsAwareInterface $polyline
24
     *
25
     * @return string
26
     */
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