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

Middleware::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 10
Ratio 100 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 10
loc 10
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
crap 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