CreateWebhookRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A authorize() 0 4 1
A rules() 0 7 1
1
<?php
2
3
namespace Mpociot\CaptainHook\Http\Requests;
4
5
use Illuminate\Foundation\Http\FormRequest;
6
7
class CreateWebhookRequest extends FormRequest
8
{
9
    /**
10
     * Determine if the user is authorized to make this request.
11
     *
12
     * @return bool
13
     */
14
    public function authorize()
15
    {
16
        return true;
17
    }
18
19
    /**
20
     * @return array
21
     */
22
    public function rules()
23
    {
24
        return [
25
            'url' => 'required|url',
26
            'event' => 'required',
27
        ];
28
    }
29
}
30