Code Duplication    Length = 4-4 lines in 2 locations

src/Response/Response.php 1 location

@@ 1262-1265 (lines=4) @@
1259
1260
        $sCharacterSet = '';
1261
        $sCharacterEncoding = trim($this->getOption('core.encoding'));
1262
        if(($sCharacterEncoding) && strlen($sCharacterEncoding) > 0)
1263
        {
1264
            $sCharacterSet = '; charset="' . trim($sCharacterEncoding) . '"';
1265
        }
1266
1267
        header('content-type: ' . $this->sContentType . ' ' . $sCharacterSet);
1268
    }

src/Response/UploadResponse.php 1 location

@@ 90-93 (lines=4) @@
87
    {
88
        $sCharacterSet = '';
89
        $sCharacterEncoding = trim($this->getOption('core.encoding'));
90
        if(($sCharacterEncoding) && strlen($sCharacterEncoding) > 0)
91
        {
92
            $sCharacterSet = '; charset="' . trim($sCharacterEncoding) . '"';
93
        }
94
95
        header('content-type: ' . $this->sContentType . ' ' . $sCharacterSet);
96
    }