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.

CertificatePacks   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A certificate_packs() 0 4 1
1
<?php
2
3
namespace Cloudflare\Zone\SSL;
4
5
use Cloudflare\Api;
6
use Cloudflare\Zone;
7
8
/**
9
 * CloudFlare API wrapper
10
 *
11
 * Certificate Packs
12
 *
13
 * @author James Bell <[email protected]>
14
 *
15
 * @version 1
16
 */
17
class CertificatePacks extends Api
18
{
19
    /**
20
     * List all certificate packs (permission needed: #ssl:read)
21
     * For a given zone, list all certificate packs
22
     *
23
     * @param string $identifier
24
     */
25
    public function certificate_packs($identifier)
26
    {
27
        return $this->get('/zones/'.$identifier.'/ssl/certificate_packs');
28
    }
29
}
30