UpdateRateRequest::rules()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace PWWEB\Localisation\Requests\Tax;
4
5
use Illuminate\Foundation\Http\FormRequest;
6
use PWWEB\Localisation\Models\Tax\Rate;
7
8
/**
9
 * PWWEB\Localisation\Requests\Tax\UpdateRateRequest UpdateRateRequest.
10
 *
11
 * The update request class for the Tax Rate
12
 * Class UpdateRateRequest
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 UpdateRateRequest 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 = Rate::$rules;
39
40
        return $rules;
41
    }
42
}
43