ActiveForm   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 11
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 6 1
1
<?php
2
3
/**
4
 * @author Anton Tuyakhov <[email protected]>
5
 */
6
7
namespace tuyakhov\braintree;
8
9
class ActiveForm extends \yii\bootstrap\ActiveForm
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function init()
15
    {
16
        parent::init();
17
18
        BraintreeAsset::register($this->getView());
19
        $this->fieldClass = ActiveField::class;
20
    }
21
}
22