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

Submit   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 11 2
1
<?php
2
3
namespace GeminiLabs\Castor\Forms\Fields;
4
5
use GeminiLabs\Castor\Forms\Fields\Text;
6
7
class Submit extends Text
8
{
9
	/**
10
	 * @return string
11
	 */
12
	public function render()
13
	{
14
		if( isset( $this->args['name'] )) {
15
			$this->args['name'] = 'submit';
16
		}
17
18
		return parent::render([
19
			'class'  => 'button button-primary',
20
			'type'   => 'submit',
21
		]);
22
	}
23
}
24