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

CreateCurrencyRequest::authorize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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