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.

Theme::Get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace Datatrics\API\Modules;
3
4
use Datatrics\API\Client;
5
6
class Theme extends Base
7
{
8
    /**
9
     * Private constructor so only the client can create this
10
     * @param Client $client
11
     */
12 16
    public function __construct(Client $client)
13
    {
14 16
        parent::__construct($client);
15 16
        $this->SetUrl("/project/" . $this->GetClient()->GetProjectId() . "/theme");
16 16
    }
17
18
    /**
19
     * Get the project theme
20
     * @param string template id, leave null for list of boxes
21
     * @param object Containing query arguments
22
     * @return object Result of the request
23
     */
24
    public function Get()
25
    {
26
        return $this->GetClient()->Get($this->GetUrl());
27
    }
28
29
    /**
30
     * Update a theme
31
     * @param object Containing all the information of a template
32
     * @return object Result of the request
33
     */
34
    public function Update($template)
35
    {
36
        return $this->GetClient()->Put($this->GetUrl(), $template);
37
    }
38
}
39