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.

Roles::details()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace Cloudflare\Organizations;
4
5
use Cloudflare\Api;
6
7
/**
8
 * CloudFlare API wrapper
9
 *
10
 * Organization Roles
11
 *
12
 * @author James Bell <[email protected]>
13
 *
14
 * @version 1
15
 */
16
class Roles extends Api
17
{
18
    /**
19
     * List roles (permission needed: #organization:read)
20
     * Get all available roles for an organization
21
     *
22
     * @param string $organization_identifier
23
     */
24
    public function roles($organization_identifier)
0 ignored issues
show
Coding Style Best Practice introduced by
Please use __construct() instead of a PHP4-style constructor that is named after the class.
Loading history...
25
    {
26
        return $this->get('/organizations/'.$organization_identifier.'/roles');
27
    }
28
29
    /**
30
     * Role details (permission needed: #organization:read)
31
     * Get information about a specific role for an organization
32
     *
33
     * @param string $organization_identifier
34
     * @param string $identifier
35
     */
36
    public function details($organization_identifier, $identifier)
37
    {
38
        return $this->get('/organizations/'.$organization_identifier.'/roles/'.$identifier);
39
    }
40
}
41