AbstractCompilerPass   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A log() 0 6 2
1
<?php
2
3
/*
4
 * This file is part of the `liip/LiipImagineBundle` project.
5
 *
6
 * (c) https://github.com/liip/LiipImagineBundle/graphs/contributors
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Liip\ImagineBundle\DependencyInjection\Compiler;
13
14
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
17
abstract class AbstractCompilerPass implements CompilerPassInterface
18
{
19
    /**
20
     * @param mixed[] ...$replacements
21
     */
22
    protected function log(ContainerBuilder $container, string $message, ...$replacements): void
23
    {
24
        $container->log($this, sprintf(
25
            '[liip/imagine-bundle] %s', empty($replacements) ? $message : vsprintf($message, $replacements)
26
        ));
27
    }
28
}
29