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

Hidden   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 25
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 19 4
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