BaseRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A authorize() 0 3 1
1
<?php
2
3
namespace Squadron\Base\Http\Requests;
4
5
use Illuminate\Foundation\Http\FormRequest;
6
7
abstract class BaseRequest extends FormRequest
8
{
9
    /**
10
     * Determine if the user is authorized to make this request.
11
     *
12
     * @return bool
13
     */
14
    public function authorize(): bool
15
    {
16
        return true;
17
    }
18
19
    abstract public function rules(): array;
20
}
21