ParameterFixExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 7 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