From 95edf638b8f74032f05ec8aa76caa7870986cffc Mon Sep 17 00:00:00 2001 From: Anton Komarev Date: Thu, 12 Oct 2023 10:30:51 +0300 Subject: [PATCH] Code style fix --- src/Calculator/TextUnicodeConverter.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Calculator/TextUnicodeConverter.php b/src/Calculator/TextUnicodeConverter.php index ef8d8ea..360c407 100644 --- a/src/Calculator/TextUnicodeConverter.php +++ b/src/Calculator/TextUnicodeConverter.php @@ -18,15 +18,16 @@ class TextUnicodeConverter { /** * Converts UTF-8 encoded string and returns unicode code points for every character. + * + * @return list */ - 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) {