GeneralRenderer::render()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 9
rs 10
cc 2
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
}
20