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

ParameterFixExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 5
c 1
b 1
f 0
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
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