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.

AbstractPlaceSerializableService   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 81.82%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 17 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\Service\Place;
13
14
use Http\Client\HttpClient;
15
use Http\Message\MessageFactory;
16
use Ivory\GoogleMap\Service\AbstractSerializableService;
17
use Ivory\Serializer\SerializerInterface;
18
19
/**
20
 * @author GeLo <[email protected]>
21
 */
22
abstract class AbstractPlaceSerializableService extends AbstractSerializableService
23
{
24
    /**
25
     * @param HttpClient               $client
26
     * @param MessageFactory           $messageFactory
27
     * @param SerializerInterface|null $serializer
28
     * @param string|null              $context
29
     */
30 308
    public function __construct(
31
        HttpClient $client,
32
        MessageFactory $messageFactory,
33
        SerializerInterface $serializer = null,
34
        $context = null
35
    ) {
36 308
        if ($context !== null) {
37
            $context = '/'.$context;
38
        }
39
40 308
        parent::__construct(
41 308
            'https://maps.googleapis.com/maps/api/place'.$context,
42 231
            $client,
43 231
            $messageFactory,
44 77
            $serializer
45 154
        );
46 308
    }
47
}
48