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 — develop ( fb2cf2...a0a09f )
by Baptiste
02:11
created

ExtractionStrategies   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Test Coverage

Coverage 100%
Metric Value
wmc 2
lcom 1
cbo 4
dl 0
loc 27
ccs 9
cts 9
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaults() 0 17 2
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Reflection;
5
6
use Innmind\Reflection\ExtractionStrategy\GetterStrategy;
7
use Innmind\Reflection\ExtractionStrategy\NamedMethodStrategy;
8
use Innmind\Reflection\ExtractionStrategy\ReflectionStrategy;
9
use Innmind\Immutable\TypedCollection;
10
use Innmind\Immutable\TypedCollectionInterface;
11
12
final class ExtractionStrategies
13
{
14
    private static $defaults;
15
16
    /**
17
     * Return a collection of the default strategies available
18
     *
19
     * @return TypedCollectionInterface
20
     */
21 13
    public static function defaults(): TypedCollectionInterface
22
    {
23 13
        if (self::$defaults !== null) {
24 13
            return self::$defaults;
25
        }
26
27 1
        self::$defaults = new TypedCollection(
28 1
            ExtractionStrategyInterface::class,
29
            [
30 1
                new GetterStrategy,
31 1
                new NamedMethodStrategy,
32 1
                new ReflectionStrategy,
33
            ]
34
        );
35
36 1
        return self::$defaults;
37
    }
38
}
39