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 ( b864c9...ed9166 )
by butschster
12:41
created

DisplayFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 22
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
1
<?php
2
3
namespace SleepingOwl\Admin\Factories;
4
5
use SleepingOwl\Admin\AliasBinder;
6
use SleepingOwl\Admin\Navigation\Page;
7
use SleepingOwl\Admin\Display\DisplayTab;
8
use SleepingOwl\Admin\Display\DisplayTree;
9
use SleepingOwl\Admin\Display\DisplayTable;
10
use Illuminate\Contracts\Support\Renderable;
11
use SleepingOwl\Admin\Display\DisplayTabbed;
12
use Illuminate\Contracts\Foundation\Application;
13
use SleepingOwl\Admin\Display\DisplayDatatables;
14
use SleepingOwl\Admin\Display\DisplayDatatablesAsync;
15
use SleepingOwl\Admin\Contracts\Display\DisplayFactoryInterface;
16
17
/**
18
 * @method DisplayDatatables datatables()
19
 * @method DisplayDatatablesAsync datatablesAsync()
20
 * @method DisplayTab tab(Renderable $display)
21
 * @method DisplayTabbed tabbed(\Closure|array $tabs = null)
22
 * @method DisplayTable table()
23
 * @method DisplayTree tree()
24
 * @method Page page()
25
 */
26
class DisplayFactory extends AliasBinder implements DisplayFactoryInterface
27
{
28
    /**
29
     * DisplayFactory constructor.
30
     *
31
     * @param Application $application
32
     */
33 285
    public function __construct(Application $application)
34
    {
35 285
        parent::__construct($application);
36
37 285
        $this->register([
38 285
            'datatables' => DisplayDatatables::class,
39 285
            'datatablesAsync' => DisplayDatatablesAsync::class,
40 285
            'tab' => DisplayTab::class,
41 285
            'tabbed' => DisplayTabbed::class,
42 285
            'table' => DisplayTable::class,
43 285
            'tree' => DisplayTree::class,
44 285
            'page' => Page::class,
45 285
        ]);
46 285
    }
47
}
48