Hidden::render()   A
last analyzed

Complexity

Conditions 4
Paths 8

Size

Total Lines 17
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 4
eloc 9
c 1
b 0
f 0
nc 8
nop 0
dl 0
loc 17
rs 9.9666
1
<?php
2
3
namespace GeminiLabs\Castor\Forms\Fields;
4
5
class Hidden extends Text
6
{
7
    /**
8
     * @return string
9
     */
10
    public function render()
11
    {
12
        if (isset($this->args['label'])) {
13
            unset($this->args['label']);
14
        }
15
16
        if (isset($this->args['desc'])) {
17
            unset($this->args['desc']);
18
        }
19
20
        if (isset($this->args['id'])) {
21
            unset($this->args['id']);
22
        }
23
24
        return parent::render([
25
            'class' => '',
26
            'type' => 'hidden',
27
        ]);
28
    }
29
}
30