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.

AbstractPolylineStyleRenderer   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 2
dl 0
loc 25
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B renderPolylineStyle() 0 16 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