Code Duplication    Length = 8-8 lines in 2 locations

app/Functions/FunctionsRtl.php 2 locations

@@ 474-481 (lines=8) @@
471
				$eRTL = $nothing . '</span>';
472
				break;
473
			case 'LTR':
474
			case 'ltr':
475
				// LTR text: <span dir="ltr"> text </span>
476
				// RTL text: text
477
				$sLTR = '<span dir="ltr" ' . $class . '>' . $nothing;
478
				$eLTR = $nothing . '</span>';
479
				$sRTL = '';
480
				$eRTL = '';
481
				break;
482
			case 'RTL':
483
			case 'rtl':
484
			default:
@@ 484-491 (lines=8) @@
481
				break;
482
			case 'RTL':
483
			case 'rtl':
484
			default:
485
				// LTR text: text
486
				// RTL text: <span dir="rtl"> text </span>
487
				$sLTR = '';
488
				$eLTR = '';
489
				$sRTL = '<span dir="rtl" ' . $class . '>' . $nothing;
490
				$eRTL = $nothing . '</span>';
491
				break;
492
		}
493
		$result = str_replace([self::$startLTR, self::$endLTR, self::$startRTL, self::$endRTL], [$sLTR, $eLTR, $sRTL, $eRTL], $result);
494