CreateProviderRequest::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Integrations\Http\Requests;
4
5
class CreateProviderRequest extends Request
6
{
7
    /**
8
     * Class constructor.
9
     *
10
     * @param  array
11
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
12
     */
13
    public function __construct(array $rules = [])
14
    {
15
        parent::__construct(
16
            [
17
            'name' => [_('Name'), 'required|max:255|unique:providers,name{excludeCurrentId}'],
18
            ]
19
        );
20
    }
21
}
22