Code Duplication    Length = 11-13 lines in 2 locations

src/voku/helper/UTF8.php 2 locations

@@ 1347-1359 (lines=13) @@
1344
        )
1345
    ) {
1346
1347
      if (
1348
          $encoding === 'UTF-8'
1349
          &&
1350
          (
1351
              $force === true
1352
              || $encodingDetected === 'UTF-8'
1353
              || $encodingDetected === 'WINDOWS-1252'
1354
              || $encodingDetected === 'ISO-8859-1'
1355
          )
1356
      ) {
1357
        return self::to_utf8($str);
1358
      }
1359
1360
      if (
1361
          $encoding === 'ISO-8859-1'
1362
          &&
@@ 1360-1370 (lines=11) @@
1357
        return self::to_utf8($str);
1358
      }
1359
1360
      if (
1361
          $encoding === 'ISO-8859-1'
1362
          &&
1363
          (
1364
              $force === true
1365
              || $encodingDetected === 'ISO-8859-1'
1366
              || $encodingDetected === 'UTF-8'
1367
          )
1368
      ) {
1369
        return self::to_iso8859($str);
1370
      }
1371
1372
      if (
1373
          $encoding !== 'UTF-8'