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

JmsCompilerPass   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 10 3
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