RemoveAliases   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 6 2
1
<?php
2
3
namespace BrainExe\Core\DependencyInjection\CompilerPass;
4
5
use BrainExe\Core\Annotations\CompilerPass;
6
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
9
/**
10
 * @CompilerPass(type="beforeRemoving")
11
 */
12
class RemoveAliases implements CompilerPassInterface
13
{
14
15
    /**
16
     * {@inheritdoc}
17
     */
18 1
    public function process(ContainerBuilder $container)
19
    {
20 1
        foreach ($container->getAliases() as $key => $value) {
21 1
            $value->setPublic(false);
22
        }
23 1
    }
24
}
25