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

TwilioConfig::getAlphanumericSender()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2.0625

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 4
cp 0.75
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 0
crap 2.0625
1
<?php
2
namespace NotificationChannels\Twilio;
3
4
class TwilioConfig
5
{
6
    /**
7
     * @var array
8
     */
9
    private $config;
10
11
    /**
12
     * TwilioConfig constructor.
13
     *
14
     * @param array $config
15
     */
16 4
    public function __construct(array $config)
17
    {
18 4
        $this->config = $config;
19 4
    }
20
21
    /**
22
     * Get the account sid.
23
     *
24
     * @return string
25
     */
26
    public function getAccountSid()
27
    {
28
        return $this->config['account_sid'];
29
    }
30
31
    /**
32
     * Get the auth token.
33
     *
34
     * @return string
35
     */
36
    public function getAuthToken()
37
    {
38
        return $this->config['auth_token'];
39
    }
40
41
    /**
42
     * Get the default from address.
43
     *
44
     * @return string
45
     */
46 3
    public function getFrom()
47
    {
48 3
        return $this->config['from'];
49
    }
50
51
    /**
52
     * Get the alphanumeric sender.
53
     *
54
     * @return string
55
     */
56 1
    public function getAlphanumericSender()
57
    {
58 1
        if (isset($this->config['alphanumeric_sender'])) {
59 1
            return $this->config['alphanumeric_sender'];
60
        }
61
    }
62
63
    /**
64
     * Get the service sid.
65
     *
66
     * @return string
67
     */
68 3
    public function getServiceSid()
69
    {
70 3
        if (isset($this->config['sms_service_sid'])) {
71 1
            return $this->config['sms_service_sid'];
72
        }
73
    }
74
}