PrivacyboxModal::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
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