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

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