Completed
Push — master ( c45904...04afc3 )
by Iman
03:46
created

Otherwise   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A otherwise() 0 3 1
1
<?php
2
3
namespace Imanghafoori\HeyMan\Core;
4
5
final class Otherwise
6
{
7
    /**
8
     * @return \Imanghafoori\HeyMan\Reactions\Reactions
9
     */
10 96
    public function otherwise()
11
    {
12 96
        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\Reactions\Reactions.
Loading history...
13
    }
14
}
15