Code Duplication    Length = 7-9 lines in 2 locations

src/Comodojo/Dispatcher/Response/Preprocessor/Status205.php 1 location

@@ 29-35 (lines=7) @@
26
27
class Status205 extends AbstractPreprocessor {
28
29
    public function consolidate() {
30
31
        foreach (array('Allow', 'Content-Encoding', 'Content-Language', 'Content-Length', 'Content-MD5', 'Content-Type', 'Last-Modified') as $header) {
32
            $this->response()->headers()->delete($header);
33
        }
34
35
    }
36
37
}
38

src/Comodojo/Dispatcher/Response/Preprocessor/Status304.php 1 location

@@ 29-37 (lines=9) @@
26
27
class Status304 extends Status100 {
28
29
    public function consolidate() {
30
31
        foreach (array('Allow', 'Content-Encoding', 'Content-Language', 'Content-Length', 'Content-MD5', 'Content-Type', 'Last-Modified') as $header) {
32
            $this->response()->headers()->delete($header);
33
        }
34
35
        parent::consolidate();
36
37
    }
38
39
40