Code Duplication    Length = 6-8 lines in 3 locations

src/Output/Processor.php 3 locations

@@ 98-105 (lines=8) @@
95
96
                break;
97
98
            case 202: //Accepted
99
100
                //PLEASE NOTE: according to HTTP/1.1, 202 header SHOULD HAVE status description in body... just in case
101
                header($_SERVER["SERVER_PROTOCOL"].' 202 Accepted');
102
                header('Status: 202 Accepted');
103
                header('Content-Length: '.$content->length());
104
105
                break;
106
107
            case 204: //OK - No Content
108
@@ 150-155 (lines=6) @@
147
148
                break;
149
150
            case 400: //Bad Request
151
152
                header($_SERVER["SERVER_PROTOCOL"].' 400 Bad Request', true, 400);
153
                header('Content-Length: '.$content->length());
154
155
                break;
156
157
            case 403:
158
@@ 163-169 (lines=7) @@
160
161
                break;
162
163
            case 404: //Not Found
164
165
                header($_SERVER["SERVER_PROTOCOL"].' 404 Not Found');
166
                header('Status: 404 Not Found');
167
                header('Content-Length: '.$content->length());
168
169
                break;
170
171
            case 405: //Not allowed
172