ParameterFixExtension::load()   A
last analyzed

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