Test Setup Failed
Push — develop ( 04b246...d52f7e )
by Nikita
10:40
created

InstallModuleRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 5 1
1
<?php
2
3
namespace Gameap\Http\Requests\Modules;
4
5
use Gameap\Http\Requests\Request;
6
7
class InstallModuleRequest extends Request
8
{
9
    public function rules()
10
    {
11
        return [
12
            'module'      => 'required|alpha_dash',
13
            'version'     => 'required|regex:/^[a-z0-9\_\-\.]+$/i',
14
        ];
15
    }
16
}
17