StoreJobPoster   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A authorize() 0 4 1
1
<?php
2
3
namespace App\Http\Requests;
4
5
use App\Http\Requests\UpdateJobPoster;
6
7
class StoreJobPoster extends UpdateJobPoster
8
{
9
    /**
10
     * Determine if the user is authorized to make this request.
11
     *
12
     * @return boolean
13
     */
14 2
    public function authorize(): bool
15
    {
16
        // The STORE job poster method requires the user's manager id.
17 2
        return $this->user()->manager !== null;
18 2
    }
19
}
20