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
Pull Request — master (#837)
by E
07:31 queued 05:03
created

Elements   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getClassTypeList() 0 4 1
A getAll() 0 4 1
A getEmptyList() 0 9 2
1
<?php declare(strict_types=1);
2
3
namespace ApiGen\Parser\Elements;
4
5
use ApiGen\Contracts\Parser\Elements\ElementsInterface;
6
7
final class Elements implements ElementsInterface
8
{
9
    /**
10
     * @return string[]
11
     */
12 1
    public function getClassTypeList(): array
13
    {
14 1
        return [self::CLASSES, self::EXCEPTIONS, self::INTERFACES, self::TRAITS];
15
    }
16
17
    /**
18
     * @return string[]
19
     */
20 15
    public function getAll(): array
21
    {
22 15
        return [self::CLASSES, self::CONSTANTS, self::EXCEPTIONS, self::FUNCTIONS, self::INTERFACES, self::TRAITS];
23
    }
24
25
    /**
26
     * @return mixed[]
27
     */
28 9
    public function getEmptyList(): array
29
    {
30 9
        $emptyList = [];
31 9
        foreach ($this->getAll() as $type) {
32 9
            $emptyList[$type] = [];
33
        }
34
35 9
        return $emptyList;
36
    }
37
}
38