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
Branch development (1ea943)
by butschster
05:38
created

DisplayFactory::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 1
dl 0
loc 14
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 SleepingOwl\Admin\Contracts\AdminInterface;
13
use Illuminate\Contracts\Foundation\Application;
14
use SleepingOwl\Admin\Display\DisplayDatatables;
15
use SleepingOwl\Admin\Display\DisplayDatatablesAsync;
16
use SleepingOwl\Admin\Contracts\ModelConfigurationInterface;
17
use SleepingOwl\Admin\Contracts\Display\DisplayFactoryInterface;
18
19
/**
20
 * @method DisplayDatatables datatables()
21
 * @method DisplayDatatablesAsync datatablesAsync()
22
 * @method DisplayTab tab(Renderable $display)
23
 * @method DisplayTabbed tabbed(\Closure|array $tabs = null)
24
 * @method DisplayTable table()
25
 * @method DisplayTree tree()
26
 * @method Page page()
27
 */
28
class DisplayFactory extends AliasBinder implements DisplayFactoryInterface
29
{
30
    /**
31
     * DisplayFactory constructor.
32
     *
33
     * @param Application $application
34
     */
35
    public function __construct(Application $application)
36
    {
37
        parent::__construct($application);
38
39
        $this->register([
40
            'datatables' => DisplayDatatables::class,
41
            'datatablesAsync' => DisplayDatatablesAsync::class,
42
            'tab' => DisplayTab::class,
43
            'tabbed' => DisplayTabbed::class,
44
            'table' => DisplayTable::class,
45
            'tree' => DisplayTree::class,
46
            'page' => Page::class,
47
        ]);
48
    }
49
}
50