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   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
c 0
b 0
f 0
ccs 12
cts 12
cp 1
rs 10
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\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