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   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 94.12%

Importance

Changes 4
Bugs 1 Features 0
Metric Value
wmc 6
c 4
b 1
f 0
lcom 0
cbo 0
dl 0
loc 55
ccs 16
cts 17
cp 0.9412
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 9 2
A __construct() 0 10 2
A getContent() 0 4 1
A getReceiver() 0 4 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