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 (#43)
by
unknown
01:55
created

TwilioNotifyMessage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 33
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getServiceSid() 0 4 1
A setServiceSid() 0 6 1
1
<?php
2
3
namespace NotificationChannels\Twilio;
4
5
class TwilioNotifyMessage extends TwilioMessage
6
{
7
8
    /**
9
     * service sid
10
     *
11
     * @var null|string
12
     */
13
    public $service_sid = null;
14
15
    /**
16
     * get Service Id
17
     *
18
     * @return mixed
19
     */
20
    public function getServiceSid()
21
    {
22
        return $this->service_sid;
23
    }
24
25
    /**
26
     * set Service Id
27
     *
28
     * @param string $service_id
0 ignored issues
show
Documentation introduced by
There is no parameter named $service_id. Did you maybe mean $service_sid?

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...
29
     * @return $this
30
     */
31
    public function setServiceSid($service_sid)
32
    {
33
        $this->service_sid = $service_sid;
34
35
        return $this;
36
    }
37
}
38