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 (#844)
by
unknown
02:38
created

HereAddress   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 80
Duplicated Lines 0 %

Coupling/Cohesion

Components 3
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
c 0
b 0
f 0
lcom 3
cbo 1
dl 0
loc 80
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getLocationId() 0 4 1
A withLocationId() 0 7 1
A getLocationType() 0 4 1
A withLocationType() 0 7 1
A getLocationName() 0 4 1
A withLocationName() 0 7 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\Provider\Here\Model;
14
15
use Geocoder\Model\Address;
16
17
/**
18
 * @author sébastien Barré <[email protected]>
19
 */
20
final class HereAddress extends Address
21
{
22
    /**
23
     * @var string|null
24
     */
25
    private $locationId;
26
27
    /**
28
     * @var string|null
29
     */
30
    private $locationType;
31
32
    /**
33
     * @var string|null
34
     */
35
    private $locationName;
36
37
    /**
38
     * @return null|string
39
     */
40
    public function getLocationId()
41
    {
42
        return $this->locationId;
43
    }
44
45
    /**
46
     * @param null|string $LocationId
0 ignored issues
show
Documentation introduced by
There is no parameter named $LocationId. Did you maybe mean $locationId?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

Consider the following example. The parameter $ireland is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $ireland
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was changed, but the annotation was not.

Loading history...
47
     *
48
     * @return HereAddress
49
     */
50
    public function withLocationId(string $locationId = null): self
51
    {
52
        $new = clone $this;
53
        $new->locationId = $locationId;
54
55
        return $new;
56
    }
57
58
    /**
59
     * @return null|string
60
     */
61
    public function getLocationType()
62
    {
63
        return $this->locationType;
64
    }
65
66
    /**
67
     * @param null|string $LocationType
0 ignored issues
show
Documentation introduced by
There is no parameter named $LocationType. Did you maybe mean $locationType?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

Consider the following example. The parameter $ireland is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $ireland
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was changed, but the annotation was not.

Loading history...
68
     *
69
     * @return HereAddress
70
     */
71
    public function withLocationType(string $locationType = null): self
72
    {
73
        $new = clone $this;
74
        $new->locationType = $locationType;
75
76
        return $new;
77
    }
78
79
    /**
80
     * @return null|string
81
     */
82
    public function getLocationName()
83
    {
84
        return $this->locationName;
85
    }
86
87
    /**
88
     * @param null|string $LocationName
0 ignored issues
show
Documentation introduced by
There is no parameter named $LocationName. Did you maybe mean $locationName?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

Consider the following example. The parameter $ireland is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $ireland
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was changed, but the annotation was not.

Loading history...
89
     *
90
     * @return HereAddress
91
     */
92
    public function withLocationName(string $locationName = null): self
93
    {
94
        $new = clone $this;
95
        $new->locationName = $locationName;
96
97
        return $new;
98
    }
99
}
100