summaryrefslogtreecommitdiff
path: root/app/Functions/FunctionsRtl.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Functions/FunctionsRtl.php')
-rw-r--r--app/Functions/FunctionsRtl.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/Functions/FunctionsRtl.php b/app/Functions/FunctionsRtl.php
index 7b3497cc66..7d9d943496 100644
--- a/app/Functions/FunctionsRtl.php
+++ b/app/Functions/FunctionsRtl.php
@@ -64,9 +64,9 @@ class FunctionsRtl {
private static $posSpanStart;
/**
- * This function strips ‎ and ‏ from the input string. It should be used for all
+ * This function strips ‎ and ‏ from the input string. It should be used for all
* text that has been passed through the PrintReady() function before that text is stored
- * in the database. The database should NEVER contain these characters.
+ * in the database. The database should NEVER contain these characters.
*
* @param string $inputText The string from which the ‎ and ‏ characters should be stripped
*
@@ -188,7 +188,7 @@ class FunctionsRtl {
$offset = 0; // Be sure to look at the current character first
$charArray = self::getChar($workingText . "\n", $offset);
if (strpos(self::NUMBERS, $charArray['letter']) === false) {
- // This is not a digit. Is it numeric punctuation?
+ // This is not a digit. Is it numeric punctuation?
if (substr($workingText . "\n", $offset, 6) == ' ') {
$offset += 6; // This could be numeric punctuation
} elseif (strpos(self::NUMBER_PUNCTUATION, $charArray['letter']) !== false) {
@@ -197,7 +197,7 @@ class FunctionsRtl {
// If the next character is a digit, the current character is numeric punctuation
$charArray = self::getChar($workingText . "\n", $offset);
if (strpos(self::NUMBERS, $charArray['letter']) === false) {
- // This is not a digit. End the run of digits and punctuation.
+ // This is not a digit. End the run of digits and punctuation.
$numberState = false;
if (self::$currentState == 'RTL') {
if (strpos(self::NUMBER_PREFIX, $currentLetter) === false) {
@@ -348,7 +348,7 @@ class FunctionsRtl {
}
}
- // We're done. Finish last <span> if necessary
+ // We're done. Finish last <span> if necessary
if ($numberState) {
if (self::$waitingText === '') {
if (self::$currentState === 'RTL') {
@@ -612,7 +612,7 @@ class FunctionsRtl {
// Get rid of empty spans, so that our check for presence of RTL will work
$result = str_replace(array(self::$startLTR . self::$endLTR, self::$startRTL . self::$endRTL), '', $result);
- // Look for numeric strings that are times (hh:mm:ss). These have to be separated from surrounding numbers.
+ // Look for numeric strings that are times (hh:mm:ss). These have to be separated from surrounding numbers.
$tempResult = '';
while ($textSpan != '') {
$posColon = strpos($textSpan, ':');
@@ -691,7 +691,7 @@ class FunctionsRtl {
/* ****************************** LTR text handling ******************************** */
if (self::$currentState === 'LTR') {
- // Move trailing numeric strings to the following RTL text. Include any blanks preceding or following the numeric text too.
+ // Move trailing numeric strings to the following RTL text. Include any blanks preceding or following the numeric text too.
if (I18N::direction() === 'rtl' && self::$previousState === 'RTL' && !$theEnd) {
$trailingString = '';
$savedSpan = $textSpan;
@@ -958,7 +958,7 @@ class FunctionsRtl {
$textSpan = $savedSpan;
}
- // Move trailing numeric strings to the following LTR text. Include any blanks preceding or following the numeric text too.
+ // Move trailing numeric strings to the following LTR text. Include any blanks preceding or following the numeric text too.
if (!$theEnd && I18N::direction() !== 'rtl') {
$trailingString = '';
$savedSpan = $textSpan;