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::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 12
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 1
dl 0
loc 14
ccs 12
cts 12
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
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