Completed
Push — master ( 1ce8a3...77bf97 )
by Avtandil
02:04
created

CustomRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A authorize() 0 4 1
A rules() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Tests\Unit\Http\Requests;
6
7
use Illuminate\Foundation\Http\FormRequest;
8
use Longman\LaravelLodash\Http\Requests\RestrictsExtraAttributes;
9
10
class CustomRequest extends FormRequest
11
{
12
    use RestrictsExtraAttributes;
13
14
    public function authorize(): bool
15
    {
16
        return true;
17
    }
18
19
    public function rules(): array
20
    {
21
        return [];
22
    }
23
}
24