Code Duplication    Length = 6-6 lines in 2 locations

lib/classes/Swift/Mime/ContentEncoder/QpContentEncoder.php 1 location

@@ 112-117 (lines=6) @@
109
110
            $currentLine .= $enc;
111
112
            if ($i === false) {
113
                $lineLen += $size;
114
            } else {
115
                // 6 is the length of '=0D=0A'.
116
                $lineLen = $size - strrpos($enc, '=0D=0A') - 6;
117
            }
118
        }
119
120
        if ($currentLine !== '') {

lib/classes/Swift/Encoder/QpEncoder.php 1 location

@@ 224-229 (lines=6) @@
221
222
            $currentLine .= $enc;
223
224
            if ($i === false) {
225
                $lineLen += $size;
226
            } else {
227
                // 6 is the length of '=0D=0A'.
228
                $lineLen = $size - strrpos($enc, '=0D=0A') - 6;
229
            }
230
        }
231
232
        return $this->_standardize(implode("=\r\n", $lines));