Skip to content

Commit

Permalink
Code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Oct 12, 2023
1 parent a541299 commit 95edf63
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Calculator/TextUnicodeConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ class TextUnicodeConverter
{
/**
* Converts UTF-8 encoded string and returns unicode code points for every character.
*
* @return list<int>
*/
public static function convertTextToCodePoints(
string $string
): array {
public static function convertTextToCodePoints(string $string): array
{
$codePoints = [];
$values = [];
$lookingFor = 1;

for ($i = 0, $iMax = \strlen($string); $i < $iMax; ++$i) {
for ($i = 0; $i < \strlen($string); ++$i) {
$thisValue = \ord($string[$i]);

if ($thisValue < 128) {
Expand Down

0 comments on commit 95edf63

Please sign in to comment.