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.

Util   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A classEquals() 0 4 1
A getClassAsString() 0 4 1
1
<?php
2
namespace EventStore\ValueObjects\Util;
3
4
/**
5
 * Utility class for methods used all across the library
6
 * @package ValueObjects\Util
7
 */
8
class Util
9
{
10
    /**
11
     * Tells whether two objects are of the same class
12
     *
13
     * @param  object $object_a
14
     * @param  object $object_b
15
     * @return bool
16
     */
17 5
    public static function classEquals($object_a, $object_b)
18
    {
19 5
        return \get_class($object_a) === \get_class($object_b);
20
    }
21
22
    /**
23
     * Returns full namespaced class as string
24
     *
25
     * @param $object
26
     * @return string
27
     */
28 1
    public static function getClassAsString($object)
29
    {
30 1
        return \get_class($object);
31
    }
32
}
33