CreateCountryRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A authorize() 0 3 1
A rules() 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\CreateCountryRequest CreateCountryRequest.
10
 *
11
 * The create request class for the Country
12
 * Class CreateCountryRequest
13
 *
14
 * @author    Frank Pillukeit <[email protected]>
15
 * @author    Richard Browne <[email protected]
16
 * @copyright 2020 pw-websolutions.com
17
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
18
 */
19
class CreateCountryRequest extends FormRequest
20
{
21
    /**
22
     * Determine if the user is authorized to make this request.
23
     *
24
     * @return bool
25
     */
26
    public function authorize()
27
    {
28
        return true;
29
    }
30
31
    /**
32
     * Get the validation rules that apply to the request.
33
     *
34
     * @return array
35
     */
36
    public function rules()
37
    {
38
        return Country::$rules;
39
    }
40
}
41