Code Duplication    Length = 6-6 lines in 2 locations

app/Functions/FunctionsRtl.php 2 locations

@@ 295-300 (lines=6) @@
292
								if ($workingText === '') {
293
									break;
294
								}
295
								if (substr($workingText, 0, 1) === ' ') {
296
									// Spaces following this left parenthesis inherit the following directionality too
297
									self::$waitingText .= ' ';
298
									$workingText = substr($workingText, 1);
299
									continue;
300
								}
301
								if (substr($workingText, 0, 6) === ' ') {
302
									// Spaces following this left parenthesis inherit the following directionality too
303
									self::$waitingText .= ' ';
@@ 301-306 (lines=6) @@
298
									$workingText = substr($workingText, 1);
299
									continue;
300
								}
301
								if (substr($workingText, 0, 6) === ' ') {
302
									// Spaces following this left parenthesis inherit the following directionality too
303
									self::$waitingText .= ' ';
304
									$workingText = substr($workingText, 6);
305
									continue;
306
								}
307
								break;
308
							}
309
							$openParDirection[$openParIndex] = '?';