Completed
Push — master ( 6c98ba...4ff6a3 )
by Elf
04:33
created

FormRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 12
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