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.

Analyze   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
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 24
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A analyze() 0 9 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
 * Analyze Certificate
12
 *
13
 * @author James Bell <[email protected]>
14
 *
15
 * @version 1
16
 */
17
class Analyze extends Api
18
{
19
    /**
20
     * Analyze Certificate (permission needed: #ssl:read)
21
     * Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.
22
     *
23
     * @param string      $identifier
24
     * @param string      $certificate   The zone's SSL certificate or certificate and the intermediate(s)
25
     * @param string|null $bundle_method A ubiquitous bundle is a bundle that has a higher probability of
26
     *                                   being verified everywhere, even by clients using outdated or unusual
27
     *                                   trust stores. An optimal bundle is a bundle with the shortest chain and
28
     *                                   newest intermediates. A forced method attempt to use the certificate/chain
29
     *                                   as defined by the input
30
     */
31
    public function analyze($identifier, $certificate, $bundle_method = null)
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...
32
    {
33
        $data = [
34
            'certificate'   => $certificate,
35
            'bundle_method' => $bundle_method,
36
        ];
37
38
        return $this->post('/zones/'.$identifier.'/ssl/analyze', $data);
39
    }
40
}
41