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.
Passed
Push — master ( 1289ea...283559 )
by SignpostMarv
07:56
created

Factory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 13
dl 0
loc 32
c 0
b 0
f 0
ccs 13
cts 13
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A DaftObjectNotRecalledExceptionWithTypeFromArgumentOnImplementation() 0 26 1
1
<?php
2
/**
3
* Base daft objects.
4
*
5
* @author SignpostMarv
6
*/
7
declare(strict_types=1);
8
9
namespace SignpostMarv\DaftObject\DaftObjectRepository\Exceptions;
10
11
use SignpostMarv\DaftObject\DaftObject;
12
use SignpostMarv\DaftObject\DaftObjectRepository;
13
use SignpostMarv\DaftObject\Exceptions\Factory as Base;
14
use Throwable;
15
16
abstract class Factory extends Base
17
{
18
    /**
19
    * @psalm-param class-string<DaftObject> $type
20
    * @psalm-param class-string<DaftObjectRepository> $implementation
21
    */
22 4
    public static function DaftObjectNotRecalledExceptionWithTypeFromArgumentOnImplementation(
23
        int $argument,
24
        string $method,
25
        string $type,
26
        string $implementation,
27
        string $implementation_method = 'RecallDaftObject',
28
        int $code = self::DEFAULT_INT_CODE,
29
        Throwable $previous = null
30
    ) : DaftObjectNotRecalledException {
31
        /**
32
        * @var DaftObjectNotRecalledException
33
        */
34 4
        $out = static::Exception(
35 4
            DaftObjectNotRecalledException::class,
36 2
            $code,
37 2
            $previous,
38 4
            DaftObjectNotRecalledException::class,
39 4
            'Argument %u passed to %s() did not resolve to an instance of %s from %s::%s()',
40 2
            $argument,
41 2
            $method,
42 2
            $type,
43 2
            $implementation,
44 2
            $implementation_method
45
        );
46
47 4
        return $out;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $out returns the type Exception which includes types incompatible with the type-hinted return SignpostMarv\DaftObject\...ectNotRecalledException.
Loading history...
48
    }
49
}
50