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 ( c91abf...bbc381 )
by Claude
03:01
created

AuthyStatsResponse::getTotalUsers()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 2
eloc 2
nc 2
nop 0
crap 2
1
<?php
2
3
/*
4
 * A php library for using the Authy API.
5
 *
6
 * @link      https://github.com/ck-developer/authy
7
 * @package   authy
8
 * @license   MIT
9
 * @copyright Copyright (c) 2016 Claude Khedhiri <[email protected]>
10
 */
11
12
namespace Authy\Message;
13
14
class AuthyStatsResponse extends AbstractResponse
15
{
16
    /**
17
     * @return array|null
18
     */
19 1
    public function getStats()
20
    {
21 1
        return $this->isSuccessful() ? $this->data['stats'] : null;
22
    }
23
24 1
    public function getTotalUsers()
25
    {
26 1
        return $this->isSuccessful() & array_key_exists('total_users', $this->data) ? $this->data['total_users'] : null;
27
    }
28
}
29