Passed
Push — master ( 26ea1a...43abdf )
by Matthew
07:12
created

WorkerCompilerTrait::getRunManagerType()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 4
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 8
ccs 5
cts 5
cp 1
crap 2
rs 10
1
<?php
2
3
namespace Dtc\QueueBundle\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
7
trait WorkerCompilerTrait {
8
9 4
    protected function getRunManagerType(ContainerBuilder $container)
10
    {
11 4
        $managerType = 'dtc_queue.manager.job';
12 4
        if ($container->hasParameter('dtc_queue.manager.run')) {
13 4
            $managerType = 'dtc_queue.manager.run';
14
        }
15
16 4
        return $managerType;
17
    }
18
}