Code Duplication    Length = 5-8 lines in 2 locations

web/ckfinder/core/connector/php/vendor/cksource/ckfinder/src/CKSource/CKFinder/Image.php 2 locations

@@ 253-257 (lines=5) @@
250
        if ($iFactorX != 1 || $iFactorY != 1) {
251
            if ($useHigherFactor) {
252
                // Uses the higher Factor to change the opposite size
253
                if ($iFactorX > $iFactorY) {
254
                    $oSize['height'] = (int) round($actualHeight * $iFactorX);
255
                } elseif ($iFactorX < $iFactorY) {
256
                    $oSize['width'] = (int) round($actualWidth * $iFactorY);
257
                }
258
            } else {
259
                // Uses the lower Factor to change the opposite size
260
                if ($iFactorX < $iFactorY) {
@@ 258-265 (lines=8) @@
255
                } elseif ($iFactorX < $iFactorY) {
256
                    $oSize['width'] = (int) round($actualWidth * $iFactorY);
257
                }
258
            } else {
259
                // Uses the lower Factor to change the opposite size
260
                if ($iFactorX < $iFactorY) {
261
                    $oSize['height'] = (int) round($actualHeight * $iFactorX);
262
                } elseif ($iFactorX > $iFactorY) {
263
                    $oSize['width'] = (int) round($actualWidth * $iFactorY);
264
                }
265
            }
266
        }
267
268
        if ($oSize['height'] <= 0) {