Passed
Push — feature/departments-admin-pane... ( 89d47a...9dd6be )
by Grant
14:35
created

WhichPortal::urlIsManagerPortal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace App\Services;
4
5
use Illuminate\Support\Facades\Route;
6
7
class WhichPortal {
8
9 27
    public function isApplicantPortal() {
10 27
        return !$this->isManagerPortal();
11
    }
12
13 32
    public function isManagerPortal() {
14 32
        $routeName = Route::currentRouteName();
15 32
        return str_is('manager.*',$routeName);
16
    }
17
18
}
19