Password::render()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 1
ccs 0
cts 4
cp 0
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php
2
3
  namespace Fiv\Form\Element;
4
5
  /**
6
   * @author Ivan Shcherbak <[email protected]>
7
   */
8
  class Password extends Input {
9
10
    /**
11
     * @var array
12
     */
13
    protected $attributes = [
14
      'type' => 'password',
15
    ];
16
17
18
    /**
19
     * @return string
20
     */
21
    public function render() {
22
      $this->attributes['value'] = null;
23
      return parent::render();
24
    }
25
26
  }