Test Failed
Pull Request — master (#41)
by Ashoka
09:26
created

ParameterFixExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 1
f 0
dl 0
loc 15
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 7 1
1
<?php
2
/**
3
 * Copyright MediaCT. All rights reserved.
4
 * https://www.mediact.nl
5
 */
6
7
declare(strict_types=1);
8
9
namespace Mediact\TestingSuite\Composer\GrumPHP;
10
11
use GrumPHP\Extension\ExtensionInterface;
12
use Symfony\Component\DependencyInjection\ContainerBuilder;
13
14
class ParameterFixExtension implements ExtensionInterface
15
{
16
    /**
17
     * Replace placeholders to
18
     * @param ContainerBuilder $container
19
     *
20
     * @return void
21
     */
22
    public function load(ContainerBuilder $container): void
23
    {
24
        $container->setParameter(
25
            'tasks',
26
            $container->resolveEnvPlaceholders(
27
                $container->getParameter('tasks'),
28
                true
29
            )
30
        );
31
    }
32
}
33