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::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 8
nc 2
nop 4
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