This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
8
9
/**
10
* Determine if the user is authorized to make this request.
11
*
12
* @return bool
13
*/
14
public function authorize() {
15
return true;
16
}
17
18
/**
19
* Get the validation rules that apply to the request.
67% of this comment could be valid code. Did you maybe forget this after debugging?
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have
checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that
someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.
Loading history...
31
];
32
}
33
34
public function messages() {
35
return [
36
'status_id.required' => 'Staus Required',
37
'priority_id.required' => 'Priority Required',
38
'change_type_id.required' => 'Change Type Required',
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.