ActiveForm::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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