ThreemaGateway_ViewPublic_TfaManage   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A renderHtml() 0 13 2
1
<?php
2
/**
3
 * Show verification dialog after provider data changed.
4
 *
5
 * @package ThreemaGateway
6
 * @author rugk
7
 * @copyright Copyright (c) 2015-2016 rugk
8
 * @license MIT
9
 */
10
11
class ThreemaGateway_ViewPublic_TfaManage extends XenForo_ViewPublic_Base
12
{
13
    public function renderHtml()
14
    {
15
        /** @var XenForo_Tfa_AbstractProvider $provider */
16
        $provider = $this->_params['provider'];
17
18
        if ($this->_params['showSetup']) {
19
            $this->_params['newProviderHtml'] = $provider->renderVerification(
20
                $this, 'setup', $this->_params['user'], $this->_params['newProviderData'], $this->_params['newTriggerData']
21
            );
22
        } else {
23
            $this->_params['newProviderHtml'] = '';
24
        }
25
    }
26
}
27