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

DisplayColumnFactory::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 23
Code Lines 19

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 19
nc 1
nop 1
dl 0
loc 23
rs 9.0856
c 0
b 0
f 0
1
<?php
2
3
namespace SleepingOwl\Admin\Factories;
4
5
use SleepingOwl\Admin\AliasBinder;
6
use SleepingOwl\Admin\Display\Column;
7
use SleepingOwl\Admin\Contracts\Display\DisplayColumnFactoryInterface;
8
9
/**
10
 * @method Column\Action action($name, $title = null)
11
 * @method Column\Checkbox checkbox($label = null)
12
 * @method Column\Control control($label = null)
13
 * @method Column\Count count($name, $label = null)
14
 * @method Column\Custom custom($label = null, \Closure $callback = null)
15
 * @method Column\DateTime datetime($name, $label = null)
16
 * @method Column\Filter filter($name, $label = null)
17
 * @method Column\Image image($name, $label = null)
18
 * @method Column\Lists lists($name, $label = null)
19
 * @method Column\Order order()
20
 * @method Column\Text text($name, $label = null)
21
 * @method Column\Link link($name, $label = null)
22
 * @method Column\RelatedLink relatedLink($name, $label = null)
23
 * @method Column\Email email($name, $label = null)
24
 * @method Column\TreeControl treeControl()
25
 * @method Column\Url url($name, $label = null)
26
 */
27
class DisplayColumnFactory extends AliasBinder implements DisplayColumnFactoryInterface
28
{
29
    /**
30
     * DisplayColumnFactory constructor.
31
     *
32
     * @param \Illuminate\Contracts\Foundation\Application $application
33
     */
34
    public function __construct(\Illuminate\Contracts\Foundation\Application $application)
35
    {
36
        parent::__construct($application);
37
38
        $this->register([
39
            'action' => Column\Action::class,
40
            'checkbox' => Column\Checkbox::class,
41
            'control' => Column\Control::class,
42
            'count' => Column\Count::class,
43
            'custom' => Column\Custom::class,
44
            'datetime' => Column\DateTime::class,
45
            'filter' => Column\Filter::class,
46
            'image' => Column\Image::class,
47
            'lists' => Column\Lists::class,
48
            'order' => Column\Order::class,
49
            'text' => Column\Text::class,
50
            'link' => Column\Link::class,
51
            'relatedLink' => Column\RelatedLink::class,
52
            'email' => Column\Email::class,
53
            'treeControl' => Column\TreeControl::class,
54
            'url' => Column\Url::class,
55
        ]);
56
    }
57
}
58