Completed
Push — master ( 1e1003...70fba4 )
by Dmitry
15:05
created

PincodePrompt::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace hipanel\widgets;
4
5
use hipanel\assets\PincodePromptAsset;
6
use yii\base\Widget;
7
8
class PincodePrompt extends Widget
9
{
10
    public $loadingText;
11
12
    public function run()
13
    {
14
        PincodePromptAsset::register($this->view);
15
16
        return $this->renderModalView();
17
    }
18
19
    protected function renderModalView()
20
    {
21
        return $this->render('pincode-prompt', [
22
            'widget' => $this
23
        ]);
24
    }
25
}
26