Failed Conditions
Pull Request — experimental/3.1 (#2424)
by chihiro
42:25
created

FormExtensionServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 11 1
1
<?php
2
3
namespace Plugin\FormExtension\ServiceProvider;
4
5
use Pimple\Container;
6
use Pimple\ServiceProviderInterface;
7
use Plugin\FormExtension\Form\Extension\EntryTypeExtension;
8
9
class FormExtensionServiceProvider implements ServiceProviderInterface
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
10
{
11
    public function register(Container $app)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
12
    {
13
        $app->extend(
14
            'form.type.extensions',
15
            function ($extensions) {
16
                $extensions[] = new EntryTypeExtension();
17
18
                return $extensions;
19
            }
20
        );
21
    }
22
}
23