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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 2 Features 0
Metric Value
wmc 2
c 2
b 2
f 0
lcom 0
cbo 1
dl 0
loc 37
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A items() 0 4 1
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