Passed
Push — master ( ea1130...b24b06 )
by F
03:15
created

UpdateCountryRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A rules() 0 3 1
A authorize() 0 3 1
1
<?php
2
3
namespace PWWEB\Localisation\Requests;
4
5
use Illuminate\Foundation\Http\FormRequest;
6
use PWWEB\Localisation\Models\Country;
7
8
/**
9
 * PWWEB\Localisation\Requests\UpdateCountryRequest UpdateCountryRequest.
10
 *
11
 * The update request class for the Country
12
 * Class UpdateCountryRequest
13
 *
14
 * @package   pwweb/localisation
15
 * @author    Frank Pillukeit <[email protected]>
16
 * @author    Richard Browne <[email protected]
17
 * @copyright 2020 pw-websolutions.com
18
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
19
*/
20
class UpdateCountryRequest extends FormRequest
21
{
22
23
    /**
24
     * Determine if the user is authorized to make this request.
25
     *
26
     * @return bool
27
     */
28
    public function authorize()
29
    {
30
        return true;
31
    }
32
33
    /**
34
     * Get the validation rules that apply to the request.
35
     *
36
     * @return array
37
     */
38
    public function rules()
39
    {
40
        return Country::$rules;
41
    }
42
}
43