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 ( 90cf5c...e17caf )
by Sergey
02:42
created

Container   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getResourceType() 0 4 1
1
<?php
2
/*
3
 * This file is part of the reva2/jsonapi.
4
 *
5
 * (c) Sergey Revenko <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Reva2\JsonApi\Schema;
12
13
use Doctrine\Common\Util\ClassUtils;
14
use Neomerx\JsonApi\Schema\Container as BaseContainer;
15
16
/**
17
 * Schema container for JSON API encoder
18
 *
19
 * @package Reva2\JsonApi\Schema
20
 * @author Sergey Revenko <[email protected]>
21
 */
22
class Container extends BaseContainer
23
{
24
    /**
25
     * @inheritdoc
26
     */
27 1
    protected function getResourceType($resource)
28
    {
29 1
        return ClassUtils::getRealClass(get_class($resource));
30
    }
31
}
32