Completed
Pull Request — master (#107)
by Glenn
12:00 queued 06:04
created

RecentTasks::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace App\Widgets;
4
5
use Arrilot\Widgets\AbstractWidget;
6
7
class RecentTasks extends AbstractWidget
8
{
9
    /**
10
     * The configuration array.
11
     *
12
     * @var array
13
     */
14
    protected $config = [];
15
16
    /**
17
     * The number of seconds before each reload.
18
     *
19
     * @var int|float
20
     */
21
    public $reloadTimeout = 30;
22
23
    /**
24
     * Treat this method as a controller action.
25
     * Return view() or other content to display.
26
     */
27
    public function run()
28
    {
29
        return view("widgets.recent_tasks", [
30
            'config' => $this->config,
31
        ]);
32
    }
33
34
35
}