Otherwise::otherwise()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Imanghafoori\HeyMan\Core;
4
5
final class Otherwise
6
{
7
    /**
8
     * @return \Imanghafoori\HeyMan\Plugins\PreReaction\PreReactions
9
     */
10 99
    public function otherwise()
11
    {
12 99
        return resolve(Reaction::class);
0 ignored issues
show
Bug Best Practice introduced by
The expression return resolve(Imanghafo...n\Core\Reaction::class) returns the type Imanghafoori\HeyMan\Core\Reaction which is incompatible with the documented return type Imanghafoori\HeyMan\Plug...reReaction\PreReactions.
Loading history...
13
    }
14
}
15