PrivacyboxModal   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 10 1
1
<?php
2
3
namespace humhub\modules\privacybox\widgets;
4
5
use humhub\modules\privacybox\models\forms\EditForm;
6
7
/**
8
 * Will injected a terms and condition box to the layout
9
 *
10
 * @package humhub.modules.breakingnews.widgets
11
 * @since 0.5
12
 * @author Luke
13
 */
14
class PrivacyboxModal extends \humhub\components\Widget
15
{
16
17
    /**
18
     * Executes the widgets
19
     */
20
    public function run()
21
    {
22
        $privacyboxForm = new EditForm();
23
24
        return $this->render('privacyboxModal', [
25
            'title' => $privacyboxForm->title,
26
            'content' => $privacyboxForm->content,
27
            'statement' => $privacyboxForm->statement
28
        ]);
29
    }
30
31
}
32
33
?>
34