Completed
Push — master ( 7c7cea...ce111c )
by Aleksandr
01:40
created

ActiveForm::run()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
4
namespace carono\checksum;
5
6
7
use yii\helpers\Html;
8
9
class ActiveForm extends \yii\widgets\ActiveForm
10
{
11
    public function run()
12
    {
13
        $content = ob_get_clean();
14
        $html = Html::beginForm($this->action, $this->method, $this->options);
15
        $html .= $content;
16
17
        if ($this->enableClientScript) {
18
            $this->registerClientScript();
19
        }
20
21
        $html .= Html::endForm();
22
        return $html;
23
    }
24
}