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.
Passed
Pull Request — master (#48)
by
unknown
03:29
created

Referral   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 61
ccs 13
cts 13
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getRef() 0 4 1
A getSource() 0 4 1
A getType() 0 4 1
A create() 0 4 1
1
<?php
2
3
namespace Tgallice\FBMessenger\Model\Callback;
4
5
class Referral
6
{
7
    /**
8
     * @var string
9
     */
10
    private $ref;
11
12
	/**
13
     * @var string
14
     */
15
    private $source;
16
17
	/**
18
     * @var string
19
     */
20
    private $type;
21
22
    /**
23
     * @param string $payload
0 ignored issues
show
Bug introduced by
There is no parameter named $payload. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
24
     */
25 5
    public function __construct($ref, $source, $type)
26
    {
27 5
        $this->ref = $ref;
28 5
		$this->source = $source;
29 5
		$this->type = $type;
30 5
    }
31
32
    /**
33
     * @return string
34
     */
35 1
    public function getRef()
36
    {
37 1
        return $this->ref;
38
    }
39
40
	/**
41
     * @return string
42
     */
43 1
    public function getSource()
44
    {
45 1
        return $this->source;
46
    }
47
48
	/**
49
     * @return string
50
     */
51 1
    public function getType()
52
    {
53 1
        return $this->type;
54
    }
55
56
    /**
57
     * @param array $payload
58
     *
59
     * @return static
60
     */
61 1
    public static function create(array $payload)
62
    {
63 1
        return new static($payload['ref'], $payload['source'], $payload['type']);
64
    }
65
}
66