GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( b71057...3578f4 )
by Aden
03:31
created

WidgetAdminManager::items()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace LaravelFlare\Flare\Admin\Widgets;
4
5
use LaravelFlare\Flare\Admin\AdminManager;
6
7
class WidgetAdminManager extends AdminManager
8
{
9
    /**
10
     * Admin Config Key.
11
     *
12
     * Key which defined where in the Flare Admin Config to
13
     * load the WidgetAdmin classes from.
14
     *
15
     * @var string
16
     */
17
    const ADMIN_KEY = 'widgets';
18
19
    /**
20
     * Base Class.
21
     *
22
     * The Base Class for Module Admin's
23
     */
24
    const BASE_CLASS = 'LaravelFlare\Flare\Admin\Widgets\WidgetAdmin';
25
26
    /**
27
     * __construct.
28
     */
29
    public function __construct()
30
    {
31
        parent::__construct();
32
    }
33
34
    /**
35
     * Returns a collection of Widget Classes
36
     * 
37
     * @return
38
     */
39
    public function items()
40
    {
41
        return collect($this->getAdminClasses());
42
    }
43
}
44