Skip to content

Commit 1c531d9

Browse files
committed
Rewrite curly braces to square brackets
1 parent 40717b1 commit 1c531d9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/php/io/streams/StringReader.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function readLine() {
6262
continue;
6363
}
6464

65-
$o= "\r" === $this->buf{$p} && $p < $l - 1 && "\n" === $this->buf{$p + 1} ? 2 : 1;
65+
$o= "\r" === $this->buf[$p] && $p < $l - 1 && "\n" === $this->buf[$p + 1] ? 2 : 1;
6666
$bytes= substr($this->buf, 0, $p);
6767
$this->buf= substr($this->buf, $p + $o);
6868
break;

src/main/php/io/streams/TextReader.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function readLine() {
129129
continue;
130130
}
131131

132-
$o= ("\r" === $this->buf{$p} && "\n" === $this->buf{$p + $this->cl}) ? $this->cl * 2 : $this->cl;
132+
$o= ("\r" === $this->buf[$p] && "\n" === $this->buf[$p + $this->cl]) ? $this->cl * 2 : $this->cl;
133133
$p-= $this->of;
134134
$bytes= substr($this->buf, 0, $p);
135135
$this->buf= substr($this->buf, $p + $o);

src/main/php/io/sys/ShmSegment.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct($name) {
3333
$str= str_pad($name, 4, 'Z');
3434
$this->spot= '';
3535
for ($i= 0; $i < 4; $i++) {
36-
$this->spot.= dechex(ord($str{$i}));
36+
$this->spot.= dechex(ord($str[$i]));
3737
}
3838
$this->spot= hexdec('0x'.$this->spot);
3939

0 commit comments

Comments
 (0)