Test Failed
Push — master ( 0fcd0f...4e8aa2 )
by Pavel
04:49 queued 16s
created

JmsCompilerPass::process()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 3
eloc 5
nc 4
nop 1
1
<?php
2
3
namespace ScayTrase\Api\Cruds\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
8
class JmsCompilerPass implements CompilerPassInterface
9
{
10
    /** {@inheritdoc} */
11
    public function process(ContainerBuilder $container)
12
    {
13
        if (!$container->has('debug.stopwatch')) {
14
            $container->removeDefinition('jms_serializer.stopwatch_subscriber');
15
        }
16
17
        if (!$container->has('jms_serializer')) {
18
            return;
19
        }
20
    }
21
}
22