IndexRequest   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getLanguage() 0 3 1
A getProblemId() 0 3 1
A rules() 0 3 1
A authorize() 0 3 1
A getStatus() 0 3 1
A getUserName() 0 3 1
1
<?php
2
3
namespace App\Http\Requests\Solution;
4
5
use App\Http\Requests\Request;
6
7
class IndexRequest extends Request
8
{
9
    public function getUserName()
10
    {
11
        return $this->input('username');
12
    }
13
14
    public function getProblemId()
15
    {
16
        return $this->input('problem_id');
17
    }
18
19
    public function getLanguage()
20
    {
21
        return $this->input('language', -1);
22
    }
23
24
    public function getStatus()
25
    {
26
        return $this->input('status', -1);
27
    }
28
29
    public function rules()
30
    {
31
        return [];
32
    }
33
34
    public function authorize()
35
    {
36
        return true;
37
    }
38
}
39