Skip to content

Commit 3d7f3e1

Browse files
committed
ITST-21347 - Fix various number formatting issues, especially with scientific notation and fractions - Coding Standards
1 parent 8e04478 commit 3d7f3e1

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

lib/NumberFormatTokenizer.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ private function convertFormatSectionToTokens($section_string)
284284
continue;
285285
}
286286

287-
if ( $token->isScientificNotationE()
288-
&& !$token->isQuoted()
289-
&& !$token->isInSquareBrackets()
287+
if ($token->isScientificNotationE()
288+
&& !$token->isQuoted()
289+
&& !$token->isInSquareBrackets()
290290
) {
291291
// This token should be kept seperated from the rest to make formatting easier.
292292
$prevent_merge_of_passed_token = true;
@@ -449,6 +449,7 @@ private function detectCondition($section_tokens)
449449
}
450450
}
451451
}
452+
452453
return $condition;
453454
}
454455

@@ -470,6 +471,7 @@ private function detectFormatType($section_tokens)
470471
}
471472
}
472473
}
474+
473475
return null; // Format type uncertain, should probably not be applied.
474476
}
475477

@@ -510,6 +512,7 @@ private function isDateTimeFormat($section)
510512
}
511513
}
512514
}
515+
513516
return false;
514517
}
515518

@@ -529,6 +532,7 @@ private function detectIfPercentage($section)
529532
return true;
530533
}
531534
}
535+
532536
return false;
533537
}
534538

0 commit comments

Comments
 (0)