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.

InvalidServerResponse::emptyResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Geocoder package.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT License
11
 */
12
13
namespace Geocoder\Exception;
14
15
/**
16
 * When the geocoder server returns something that we cannot process.
17
 *
18
 * @author Tobias Nyholm <[email protected]>
19
 */
20
final class InvalidServerResponse extends \RuntimeException implements Exception
21
{
22
    /**
23
     * @param string $query
24
     * @param int    $code
25
     *
26
     * @return InvalidServerResponse
0 ignored issues
show
Documentation introduced by
Should the return type not be \self?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
27
     */
28
    public static function create(string $query, int $code = 0): self
29
    {
30
        return new self(sprintf('The geocoder server returned an invalid response (%d) for query "%s". We could not parse it.', $code, $query));
31
    }
32
33
    /**
34
     * @param string $query
35
     *
36
     * @return InvalidServerResponse
0 ignored issues
show
Documentation introduced by
Should the return type not be \self?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
37
     */
38
    public static function emptyResponse(string $query): self
39
    {
40
        return new self(sprintf('The geocoder server returned an empty response for query "%s".', $query));
41
    }
42
}
43