@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | $this->str = $str; |
80 | 80 | $this->byteLen = mb_strlen($str, '8bit'); |
81 | - if (! mb_check_encoding($str, 'UTF-8')) { |
|
81 | + if (!mb_check_encoding($str, 'UTF-8')) { |
|
82 | 82 | $this->charLen = 0; |
83 | 83 | } else { |
84 | 84 | $this->charLen = mb_strlen($str, 'UTF-8'); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * |
101 | 101 | * @param int $offset the offset to be returned |
102 | 102 | */ |
103 | - public function offsetGet($offset): string|null |
|
103 | + public function offsetGet($offset): string | null |
|
104 | 104 | { |
105 | 105 | if (($offset < 0) || ($offset >= $this->charLen)) { |
106 | 106 | return null; |