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
Push — master ( a7829d...466203 )
by
unknown
12s
created

TwitterMessage::getReceiver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace NotificationChannels\Twitter;
4
5
class TwitterMessage
6
{
7
    /** @var string */
8
    protected $content;
9
    protected $to;
10
11
    /**
12
     * @param string $content
0 ignored issues
show
Bug introduced by
There is no parameter named $content. 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...
13
     *
14
     * @return static
15
     */
16 1
    public static function create()
17
    {
18 1
        $args = func_get_args();
19 1
        if (count($args) == 2) {
20
            return new static($args[0], $args[1]);
21
        } else {
22 1
            return new static($args[0]);
23
        }
24
    }
25
26
    /*
27
     * @param string $content
0 ignored issues
show
Bug introduced by
There is no parameter named $content. 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...
28
     */
29 3
    public function __construct()
30
    {
31 3
        $args = func_get_args();
32 3
        if (count($args) == 2) {
33 1
            $this->to = $args[0];
34 1
            $this->content = $args[1];
35 1
        } else {
36 2
            $this->content = $args[0];
37
        }
38 3
    }
39
40
    /**
41
     * Get Twitter message content.
42
     *
43
     * @return string
44
     */
45 3
    public function getContent()
46
    {
47 3
        return $this->content;
48
    }
49
50
    /**
51
     * Get Twitter message receiver.
52
     *
53
     * @return string
54
     */
55 1
    public function getReceiver()
56
    {
57 1
        return $this->to;
58
    }
59
}
60