NewsletterForm   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
1
<?php
2
/**
3
 * @link https://github.com/yiimaker/yii2-newsletter
4
 * @copyright Copyright (c) 2017 Yii Maker
5
 * @license BSD 3-Clause License
6
 */
7
8
namespace ymaker\newsletter\frontend\widgets;
9
10
use yii\base\Widget;
11
use ymaker\newsletter\common\models\entities\NewsletterClient;
12
13
/**
14
 * Renders newsletter form.
15
 *
16
 * @author Vladimir Kuprienko <[email protected]>
17
 * @since 1.0
18
 */
19
class NewsletterForm extends Widget
20
{
21
    /**
22
     * @inheritdoc
23
     */
24
    public function run()
25
    {
26
        return $this->render('newsletter-form', [
27
            'model' => new NewsletterClient(),
28
        ]);
29
    }
30
}
31