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

FormFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 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\FormFactoryInterface;
8
9
/**
10
 * @method Form\FormDefault form(array $elements = [])
11
 * @method Form\FormElements elements(array $elements = [])
12
 * @method Form\FormTabbed tabbed(array $elements = [])
13
 * @method Form\FormPanel panel(array $elements = [])
14
 */
15
class FormFactory extends AliasBinder implements FormFactoryInterface
16
{
17
    /**
18
     * FormFactory constructor.
19
     *
20
     * @param \Illuminate\Contracts\Foundation\Application $application
21
     */
22
    public function __construct(\Illuminate\Contracts\Foundation\Application $application)
23
    {
24
        parent::__construct($application);
25
26
        $this->register([
27
            'form' => Form\FormDefault::class,
28
            'elements' => Form\FormElements::class,
29
            'tabbed' => Form\FormTabbed::class,
30
            'panel' => Form\FormPanel::class,
31
        ]);
32
    }
33
}
34