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.
Completed
Push — master ( b98016...0803ae )
by Mohamed
40:16 queued 14:56
created

VersionQuery   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getVersion() 0 4 1
A getClass() 0 4 1
A getQueryPath() 0 4 1
1
<?php
2
3
namespace Neta\Shopware\SDK\Query;
4
5
use Neta\Shopware\SDK\Util\Constants;
6
7
/**
8
 * Class VersionQuery.
9
 *
10
 * @author    Alexander Mahrt <[email protected]>
11
 * @copyright 2016 LeadCommerce <[email protected]>
12
 */
13
class VersionQuery extends Base
14
{
15
    /**
16
     * @var array
17
     */
18
    protected $methodsAllowed = [
19
        Constants::METHOD_GET_BATCH,
20
    ];
21
22
    /**
23
     * @return false|\stdClass
24
     */
25
    public function getVersion()
26
    {
27
        return $this->fetchJson('/version');
28
    }
29
30
    /**
31
     * @return mixed
32
     */
33
    protected function getClass()
34
    {
35
        return 'stdClass';
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    protected function getQueryPath()
42
    {
43
        return 'version';
44
    }
45
}
46