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.
Completed
Push — static-map ( 1bc0cf )
by Eric
64:02
created

PolylineStyleRenderer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 7 2
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\Overlay\Polyline;
15
16
/**
17
 * @author GeLo <[email protected]>
18
 */
19
class PolylineStyleRenderer extends AbstractPolylineStyleRenderer
20
{
21
    /**
22
     * @param Polyline $polyline
23
     *
24
     * @return string
25
     */
26
    public function render(Polyline $polyline)
27
    {
28
        return $this->renderPolylineStyle(
29
            $polyline->hasStaticOption('styles') ? $polyline->getStaticOption('styles') : [],
30
            $polyline
31
        );
32
    }
33
}
34