Completed
Push — master ( e3a872...4cb8be )
by vistart
04:19
created

UsernameFormWidget   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
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 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
1
<?php
2
3
/**
4
 *  _   __ __ _____ _____ ___  ____  _____
5
 * | | / // // ___//_  _//   ||  __||_   _|
6
 * | |/ // /(__  )  / / / /| || |     | |
7
 * |___//_//____/  /_/ /_/ |_||_|     |_|
8
 * @link https://vistart.me/
9
 * @copyright Copyright (c) 2016 - 2017 vistart
10
 * @license https://vistart.me/license/
11
 */
12
13
namespace rhosocial\user\widgets;
14
15
use rhosocial\user\forms\UsernameForm;
16
use yii\base\Widget;
17
18
/**
19
 * Class UsernameFormWidget
20
 * @package rhosocial\user\widgets
21
 */
22
class UsernameFormWidget extends Widget
23
{
24
    /**
25
     * @var UsernameForm
26
     */
27
    public $model;
28
    public function run()
29
    {
30
        return $this->render('username-form', ['model' => $this->model]);
31
    }
32
}
33