Submit::render()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 5
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 9
rs 10
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