|
@@ -17,8 +17,8 @@ discard block |
|
|
block discarded – undo |
|
17
|
17
|
public const UNSORTED_PARAM = 'param_'; |
|
18
|
18
|
|
|
19
|
19
|
/** @var string[] */ |
|
20
|
|
- protected static array $availableLetters = ['a','b','c','d','e','f','g','h','i','j','k','l','m', |
|
21
|
|
- 'n','o','p','q','r','s','t','u','v','w','x','y','z']; |
|
|
20
|
+ protected static array $availableLetters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', |
|
|
21
|
+ 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; |
|
22
|
22
|
|
|
23
|
23
|
/** |
|
24
|
24
|
* @param int[]|string[] $input is $argv in boot time |
|
@@ -55,7 +55,7 @@ discard block |
|
|
block discarded – undo |
|
55
|
55
|
} elseif (0 === strpos(strval($posted), static::DELIMITER_SHORT_ENTRY)) { |
|
56
|
56
|
// just by letters |
|
57
|
57
|
$entry = $this->removeNullBytes(substr(strval($posted), strlen(static::DELIMITER_SHORT_ENTRY))); |
|
58
|
|
- for ($i=0; $i<strlen($entry); $i++) { |
|
|
58
|
+ for ($i = 0; $i < strlen($entry); $i++) { |
|
59
|
59
|
if (in_array(strtolower($entry[$i]), static::$availableLetters)) { |
|
60
|
60
|
$clearArray[$entry[$i]] = true; |
|
61
|
61
|
} |