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

RuntimeHeaderCompiler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

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