Secret   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 43
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A version_1_0() 0 4 1
A version_1_1() 0 4 1
A version_1_1_salt() 0 4 1
1
<?php
2
3
namespace Darkgoldblade01\Wordpress\Api;
4
5
use Darkgoldblade01\Wordpress\WordpressApi;
6
7
class Secret extends WordpressApi
8
{
9
    protected $base_uri = 'https://api.wordpress.org/secret-key/';
10
11
    /**
12
     * Core 1.0.
13
     *
14
     * Returns the version 1.0 definitions.
15
     *
16
     * @return mixed
17
     * @throws \GuzzleHttp\Exception\GuzzleException
18
     */
19
    public function version_1_0()
20
    {
21
        return $this->get('1.0');
22
    }
23
24
    /**
25
     * Core 1.1.
26
     *
27
     * Returns the version 1.1 definitions.
28
     *
29
     * @return mixed
30
     * @throws \GuzzleHttp\Exception\GuzzleException
31
     */
32
    public function version_1_1()
33
    {
34
        return $this->get('1.1');
35
    }
36
37
    /**
38
     * Core 1.1 Salt.
39
     *
40
     * Returns the version 1.1 salt definitions.
41
     *
42
     * @return mixed
43
     * @throws \GuzzleHttp\Exception\GuzzleException
44
     */
45
    public function version_1_1_salt()
46
    {
47
        return $this->get('1.1/salt');
48
    }
49
}
50