TopblogsWidget   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 3 1
A run() 0 5 1
1
<?php
2
3
namespace App\Modules\Blog\Widgets;
4
5
use App\Components\View;
6
use Micro\Mvc\Widget;
7
8
/**
9
 * Class TopblogsWidget
10
 * @package App\Modules\Blog\Widgets
11
 */
12
class TopblogsWidget extends Widget
13
{
14
    /**
15
     *
16
     */
17
    public function init()
18
    {
19
    }
20
21
    /**
22
     *
23
     */
24
    public function run()
25
    {
26
        $v = new View();
27
        echo $v->render();
28
    }
29
}
30