Passed
Push — develop ( 119dfd...2d7b42 )
by Brent
02:44
created

RuntimeHeaderCompiler::compile()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Brendt\Stitcher\Site\Http;
4
5
class RuntimeHeaderCompiler implements HeaderCompiler
6
{
7
    public function compile(array $headers) {
8
        foreach ($headers as $name => $content) {
9
            header("{$name}: {$content}");
10
        }
11
    }
12
}
13