Completed
Push — master ( e5c4e9...1f2b71 )
by Matze
07:17
created

Middleware   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setupDefinition() 0 5 1
1
<?php
2
3
namespace BrainExe\Core\Annotations\Builder;
4
5
use BrainExe\Annotations\Builder\ServiceDefinition;
6
use BrainExe\Core\DependencyInjection\CompilerPass\MiddlewareCompilerPass;
7
use Symfony\Component\DependencyInjection\Definition;
8
9
class Middleware extends ServiceDefinition
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function setupDefinition(Definition $definition, string $serviceId)
0 ignored issues
show
Unused Code introduced by
The parameter $serviceId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
15
    {
16
        $definition->addTag(MiddlewareCompilerPass::TAG);
17
        $definition->setPublic(false);
18 2
    }
19
}
20