Completed
Push — develop ( efbf23...556e46 )
by Paul
02:08
created

Hidden::render()   A

Complexity

Conditions 4
Paths 8

Size

Total Lines 19
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

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