Theme::stability_check()   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 Theme extends WordpressApi
8
{
9
    protected $base_uri = 'https://api.wordpress.org/core/';
10
11
    /**
12
     * PHP Serialized.
13
     *
14
     * Returns the PHP Serialized version of the current Wordpress Core.
15
     *
16
     * @return mixed
17
     * @throws \GuzzleHttp\Exception\GuzzleException
18
     */
19
    public function php()
20
    {
21
        return $this->get('version-check/1.6', false);
22
    }
23
24
    /**
25
     * JSON.
26
     *
27
     * Returns the JSON for the current Wordpress Core.
28
     *
29
     * @return mixed
30
     * @throws \GuzzleHttp\Exception\GuzzleException
31
     */
32
    public function json()
33
    {
34
        return $this->get('version-check/1.7');
35
    }
36
37
    /**
38
     * JSON.
39
     *
40
     * Returns the JSON for the current Wordpress Core.
41
     *
42
     * @return mixed
43
     * @throws \GuzzleHttp\Exception\GuzzleException
44
     */
45
    public function stability_check()
46
    {
47
        return $this->get('stable-check/1.0');
48
    }
49
}
50