Completed
Push — master ( 5f680c...7bfca2 )
by Sergi Tur
02:12
created

UserStoreEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 27
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 7 1
1
<?php
2
3
namespace Acacha\Events\Http\Requests;
4
5
use Acacha\Events\Http\Requests\Traits\ChecksPermissions;
6
use Illuminate\Foundation\Http\FormRequest;
7
use Illuminate\Support\Facades\Auth;
8
9
/**
10
 * Class UserStoreEvent
11
 *
12
 * @package App\Http\Requests
13
 */
14
class UserStoreEvent extends FormRequest
15
{
16
    use ChecksPermissions;
17
18
    /**
19
     * Determine if the user is authorized to make this request.
20
     *
21
     * @return bool
22
     */
23
    public function authorize()
24
    {
25
        return true;
26
    }
27
28
    /**
29
     * Get the validation rules that apply to the request.
30
     *
31
     * @return array
32
     */
33
    public function rules()
34
    {
35
        return [
36
            'name' => 'required',
37
            'user_id' => 'required'
38
        ];
39
    }
40
}
41