Completed
Push — master ( 727f83...413b1b )
by Mahmoud
06:06
created

AuthenticateTwoRequest::authorize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Containers\SocialAuthentication\UI\API\Requests;
4
5
use App\Port\Request\Abstracts\Request;
6
7
/**
8
 * Class AuthenticateTwoRequest.
9
 *
10
 * @author Mahmoud Zalt <[email protected]>
11
 */
12
class AuthenticateTwoRequest extends Request
13
{
14
15
    /**
16
     * Get the validation rules that apply to the request.
17
     *
18
     * @return array
19
     */
20
    public function rules()
21
    {
22
        return [
23
            'code'     => 'required',
24
        ];
25
    }
26
27
    /**
28
     * Determine if the user is authorized to make this request.
29
     *
30
     * @return bool
31
     */
32
    public function authorize()
33
    {
34
        return true;
35
    }
36
}
37