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

AbstractStyleRenderer::renderStyle()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 15
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 8
nc 3
nop 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\Image\Overlay;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
abstract class AbstractStyleRenderer
18
{
19
    /**
20
     * @param mixed[] $styles
21
     *
22
     * @return string
23
     */
24
    public function renderStyle(array $styles)
25
    {
26
        if (empty($styles)) {
27
            return;
28
        }
29
30
        $result = [];
31
        ksort($styles);
32
33
        foreach ($styles as $style => $value) {
34
            $result[] = $style.':'.$value;
35
        }
36
37
        return implode('|', $result);
38
    }
39
}
40