UpdateLocationRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A authorize() 0 3 1
A rules() 0 5 1
1
<?php
2
3
namespace PWWEB\Localisation\Requests\Tax;
4
5
use Illuminate\Foundation\Http\FormRequest;
6
use PWWEB\Localisation\Models\Tax\Location;
7
8
/**
9
 * PWWEB\Localisation\Requests\Tax\UpdateLocationRequest UpdateLocationRequest.
10
 *
11
 * The update request class for the Tax Location
12
 * Class UpdateLocationRequest
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 UpdateLocationRequest 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
        $rules = Location::$rules;
39
40
        return $rules;
41
    }
42
}
43