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::getAll()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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