Code Duplication    Length = 8-8 lines in 2 locations

src/CImage/CFastTrackCache.php 1 location

@@ 222-229 (lines=8) @@
219
            header($value);
220
        }
221
222
        if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])
223
            && strtotime($_SERVER["HTTP_IF_MODIFIED_SINCE"]) == $item["last-modified"]) {
224
            header("HTTP/1.0 304 Not Modified");
225
            if (CIMAGE_DEBUG) {
226
                trace(__CLASS__ . " 304");
227
            }
228
            exit;
229
        }
230
231
        foreach ($item["header-output"] as $value) {
232
            header($value);

webroot/imgf.php 1 location

@@ 69-76 (lines=8) @@
66
            header($value);
67
        }
68
69
        if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])
70
            && strtotime($_SERVER["HTTP_IF_MODIFIED_SINCE"]) == $item["last-modified"]) {
71
            header("HTTP/1.0 304 Not Modified");
72
            if (CIMAGE_DEBUG) {
73
                trace("imgf 304");
74
            }
75
            exit;
76
        }
77
78
        foreach ($item["header-output"] as $value) {
79
            header($value);