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.

ClassUtils::getClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Hateoas\Util;
4
5
use Doctrine\Common\Util\ClassUtils as DoctrineClassUtils;
6
7
/**
8
 * @author Adrien Brault <[email protected]>
9
 */
10
class ClassUtils
11
{
12
    public static function getClass($object)
13
    {
14
        return self::getRealClass(get_class($object));
15
    }
16
17
    public static function getRealClass($class)
18
    {
19
        if (class_exists('Doctrine\Common\Util\ClassUtils')) {
20
            $class = DoctrineClassUtils::getRealClass($class);
21
        }
22
23
        return $class;
24
    }
25
}
26