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

Submit::render()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 6
nc 2
nop 0
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