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 ( a45d5b...8da4ae )
by Gregorio
07:07
created

TwilioConfig::getAuthToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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