Completed
Push — dev ( 9d9792...d17935 )
by Tristan
08:47 queued 10s
created

WhichPortal::isApplicantPortal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
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 2
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
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Services;
4
5
use Illuminate\Support\Facades\Route;
6
7
class WhichPortal {
0 ignored issues
show
Coding Style introduced by
Opening brace of a class must be on the line after the definition
Loading history...
Coding Style introduced by
Missing doc comment for class WhichPortal
Loading history...
8
9 4
    public function isApplicantPortal() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function isApplicantPortal()
Loading history...
10 4
        return !$this->isManagerPortal();
11
    }
12
13 4
    public function isManagerPortal() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function isManagerPortal()
Loading history...
14 4
        $routeName = Route::currentRouteName();
15 4
        return str_is('manager.*',$routeName);
16
    }
17
18
}
19