Translation   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 php() 0 4 1
A json() 0 4 1
A stability_check() 0 4 1
1
<?php
2
3
namespace Darkgoldblade01\Wordpress\Api;
4
5
use Darkgoldblade01\Wordpress\WordpressApi;
6
7
class Translation 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