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

PincodePrompt   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 18
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A run() 0 6 1
A renderModalView() 0 6 1
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