Completed
Push — master ( c9468a...0bc09f )
by
unknown
22s queued 10s
created

DiscordappFrame   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 5 1
1
<?php
2
3
namespace humhub\modules\discordapp\widgets;
4
5
use Yii;
6
use yii\base\Widget;
7
8
/**
9
 *
10
 * @author Felli
11
 */
12
class DiscordappFrame extends Widget
13
{
14
    public $contentContainer;
15
16
    /**
17
     * @inheritdoc
18
     */
19
    public function run()
20
    {
21
        $url = Yii::$app->getModule('discordapp')->getServerUrl() . '/widget?id=';
22
        return $this->render('discordappframe', ['discordappUrl' => $url]);
23
    }
24
}
25