Secret::version_1_0()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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