Passed
Push — main ( 0416fa...c3f05b )
by Seth
01:34 queued 10s
created

ReleaseNoteUpdateRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A rules() 0 5 1
A getEndpointName() 0 3 1
1
<?php
2
3
namespace SaasReady\Http\Requests\ReleaseNote;
4
5
use Illuminate\Validation\Rule;
0 ignored issues
show
Bug introduced by
The type Illuminate\Validation\Rule was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use SaasReady\Http\Requests\BaseFormRequest;
7
use SaasReady\Models\Country;
0 ignored issues
show
Bug introduced by
The type SaasReady\Models\Country was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
class ReleaseNoteUpdateRequest extends BaseFormRequest
10
{
11
    protected function getEndpointName(): string
12
    {
13
        return 'release-notes.update';
14
    }
15
16
    public function rules(): array
17
    {
18
        return [
19
            'version' => 'required|string',
20
            'note' => 'required|string',
21
        ];
22
    }
23
}
24