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.

Set   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 3
Bugs 1 Features 1
Metric Value
eloc 8
c 3
b 1
f 1
dl 0
loc 19
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A of() 0 10 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Fixtures\Innmind\Immutable;
5
6
use Innmind\BlackBox\Set as DataSet;
7
use Innmind\Immutable\{
8
    Set as Structure,
9
    Sequence as ISequence,
10
};
11
12
final class Set
13
{
14
    /**
15
     * @template I
16
     *
17
     * @param Set<I> $set
18
     *
19
     * @return Set<Structure<I>>
20
     */
21
    public static function of(DataSet $set, DataSet\Integers $sizes = null): DataSet
22
    {
23
        return DataSet\Decorate::immutable(
0 ignored issues
show
Bug Best Practice introduced by
The expression return Innmind\BlackBox\...on(...) { /* ... */ })) returns the type Innmind\BlackBox\Set\Decorate which is incompatible with the documented return type Fixtures\Innmind\Immutable\Set.
Loading history...
24
            static fn(array $values): Structure => Structure::of(...$values),
25
            DataSet\Sequence::of(
26
                $set,
27
                $sizes,
28
            )->filter(static function(array $values): bool {
29
                // checks unicity of values
30
                return ISequence::mixed(...$values)->size() === Structure::mixed(...$values)->size();
31
            }),
32
        );
33
    }
34
}
35