Passed
Pull Request — master (#41)
by Ashoka
02:55
created

ParameterFixExtension::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 5
c 1
b 1
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 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
/**
15
 * @codeCoverageIgnore
16
 */
17
class ParameterFixExtension implements ExtensionInterface
18
{
19
    /**
20
     * Replace placeholders to
21
     * @param ContainerBuilder $container
22
     *
23
     * @return void
24
     */
25
    public function load(ContainerBuilder $container): void
26
    {
27
        $container->setParameter(
28
            'tasks',
29
            $container->resolveEnvPlaceholders(
30
                $container->getParameter('tasks'),
31
                true
32
            )
33
        );
34
    }
35
}
36