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.

Monoid::properties()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 2
dl 0
loc 5
rs 10
1
<?php
2
declare(strict_types = 1);
3
4
namespace Properties\Innmind\Immutable;
5
6
use Innmind\BlackBox\{
7
    Set,
8
    Property,
9
};
10
11
final class Monoid
12
{
13
    /**
14
     * @template T
15
     *
16
     * @param Set<T> $values
17
     * @param callable(T, T): bool $equals
18
     *
19
     * @return Set<Property>
20
     */
21
    public static function properties(Set $values, callable $equals): Set
22
    {
23
        return Set\Properties::chooseFrom(
24
            new Set\Either(...self::list($values, $equals)),
25
            Set\Integers::between(1, 10),
26
        );
27
    }
28
29
    /**
30
     * @template T
31
     *
32
     * @param Set<T> $values
33
     * @param callable(T, T): bool $equals
34
     *
35
     * @return list<Property>
0 ignored issues
show
Bug introduced by
The type Properties\Innmind\Immutable\list was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
36
     */
37
    public static function list(Set $values, callable $equals): array
38
    {
39
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(Properties\...:any($values, $equals)) returns the type array<integer,Innmind\Bl...\BlackBox\Set\Decorate> which is incompatible with the documented return type Properties\Innmind\Immutable\list.
Loading history...
40
            Monoid\Identity::any($values, $equals),
41
            Monoid\Associativity::any($values, $equals),
42
        ];
43
    }
44
}
45