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.
Passed
Push — master ( b2510c...ee0bb8 )
by
unknown
12:46
created

FormButtonsFactory::__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
dl 0
loc 14
c 0
b 0
f 0
cc 1
eloc 10
nc 1
nop 1
ccs 12
cts 12
cp 1
crap 1
rs 9.4285
1
<?php
2
3
namespace SleepingOwl\Admin\Factories;
4
5
use SleepingOwl\Admin\Form;
6
use SleepingOwl\Admin\AliasBinder;
7
use SleepingOwl\Admin\Contracts\Form\FormButtonsFactoryInterface;
8
9
/**
10
 * @method static Form\Buttons\Save save()
11
 * @method static Form\Buttons\SaveAndCreate saveAndCreate()
12
 * @method static Form\Buttons\SaveAndClose saveAndClose()
13
 * @method static Form\Buttons\Delete delete()
14
 * @method static Form\Buttons\Destroy destroy()
15
 * @method static Form\Buttons\Restore restore()
16
 * @method static Form\Buttons\Cancel cancel()
17
 */
18
class FormButtonsFactory extends AliasBinder implements FormButtonsFactoryInterface
19
{
20
    /**
21
     * FormFactory constructor.
22
     *
23
     * @param \Illuminate\Contracts\Foundation\Application $application
24
     */
25 285
    public function __construct(\Illuminate\Contracts\Foundation\Application $application)
26
    {
27 285
        parent::__construct($application);
28
29 285
        $this->register([
30 285
            'save'          => Form\Buttons\Save::class,
31 285
            'saveAndClose'  => Form\Buttons\SaveAndClose::class,
32 285
            'saveAndCreate' => Form\Buttons\SaveAndCreate::class,
33 285
            'restore'       => Form\Buttons\Restore::class,
34 285
            'destroy'       => Form\Buttons\Destroy::class,
35 285
            'delete'        => Form\Buttons\Delete::class,
36 285
            'cancel'        => Form\Buttons\Cancel::class,
37 285
        ]);
38 285
    }
39
}
40