Password   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
c 2
b 0
f 0
dl 0
loc 10
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAttributes() 0 5 1
1
<?php
2
3
namespace Terranet\Administrator\Field;
4
5
class Password extends Field
6
{
7
    /**
8
     * @return array
9
     */
10
    public function getAttributes(): array
11
    {
12
        return parent::getAttributes() + [
13
                'placeholder' => trans('administrator::hints.global.optional'),
0 ignored issues
show
Bug introduced by
The function trans was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

13
                'placeholder' => /** @scrutinizer ignore-call */ trans('administrator::hints.global.optional'),
Loading history...
14
                'autocomplete' => 'off',
15
            ];
16
    }
17
}
18