Submit   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

1 Method

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