Code Duplication    Length = 3-5 lines in 2 locations

src/Comodojo/Dispatcher/Components/Headers.php 2 locations

@@ 34-36 (lines=3) @@
31
32
        if ( is_null($header) ) return $this->headers;
33
34
        else if ( array_key_exists($header, $this->headers) ) return $this->headers[$header];
35
36
        else return null;
37
38
    }
39
@@ 49-53 (lines=5) @@
46
            },
47
            $this->headers);
48
49
        } else if ( array_key_exists($header, $this->headers) ) {
50
51
            return (string)($header.':'.$this->headers[$header]);
52
53
        } else return null;
54
55
    }
56