Test Setup Failed
Push — master ( 41ad9c...0883f0 )
by Volodymyr
03:49
created

GeneralRenderer::render()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
rs 9.6666
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
namespace gulch\Assets\Renderer;
4
5
use gulch\Assets\Contract\RendererInterface;
6
7
abstract class GeneralRenderer implements RendererInterface
8
{
9
    public function render(array $assets): string
10
    {
11
        $result = '';
12
13
        foreach ($assets as $asset) {
14
            $result .= \sprintf(static::PATTERN, $asset);
0 ignored issues
show
Bug introduced by
The constant gulch\Assets\Renderer\GeneralRenderer::PATTERN was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
15
        }
16
17
        return $result;
18
    }
19
}