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

Middleware::setupDefinition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

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