FormRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A failedAuthorization() 0 4 1
1
<?php
2
3
namespace App\Support\Http;
4
5
use Illuminate\Auth\Access\AuthorizationException;
6
use Illuminate\Foundation\Http\FormRequest as BaseFormRequest;
7
8
abstract class FormRequest extends BaseFormRequest
9
{
10
    /**
11
     * Handle a failed authorization attempt.
12
     *
13
     * @throws \Illuminate\Auth\Access\AuthorizationException
14
     */
15
    protected function failedAuthorization()
16
    {
17
        throw new AuthorizationException('Forbidden');
18
    }
19
}
20