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 — master ( f79bcb...de7e43 )
by Eric
80:29 queued 77:22
created

IconSequenceRenderer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 5
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 8 1
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\Overlay;
13
14
use Ivory\GoogleMap\Helper\Renderer\AbstractJsonRenderer;
15
use Ivory\GoogleMap\Overlay\Icon;
16
use Ivory\GoogleMap\Overlay\IconSequence;
17
18
/**
19
 * @author GeLo <[email protected]>
20
 */
21
class IconSequenceRenderer extends AbstractJsonRenderer
22
{
23
    /**
24
     * @param IconSequence $icon
25
     *
26
     * @return string
27
     */
28 12
    public function render(IconSequence $icon)
29
    {
30 12
        $jsonBuilder = $this->getJsonBuilder()
31 12
            ->setValue('[icon]', $icon->getSymbol()->getVariable(), false)
32 12
            ->setValues($icon->getOptions());
33
34 12
        return $this->getFormatter()->renderObjectAssignment($icon, $jsonBuilder->build());
35
    }
36
}
37