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
Pull Request — master (#177)
by Eric
65:22 queued 62:22
created

AbstractPlaceParsableService   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 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\AbstractParsableService;
17
use Ivory\GoogleMap\Service\Utility\Parser;
18
19
/**
20
 * @author GeLo <[email protected]>
21
 */
22
abstract class AbstractPlaceParsableService extends AbstractParsableService
23
{
24
    /**
25
     * @param HttpClient     $client
26
     * @param MessageFactory $messageFactory
27
     * @param Parser|null    $parser
28
     * @param string|null    $context
29
     */
30
    public function __construct(
31
        HttpClient $client,
32
        MessageFactory $messageFactory,
33
        Parser $parser = null,
34
        $context = null
35
    ) {
36
        if ($context !== null) {
37
            $context = '/'.$context;
38
        }
39
40
        parent::__construct($client, $messageFactory, 'http://maps.googleapis.com/maps/api/place'.$context, $parser);
41
    }
42
}
43