Skip to content

Commit 8c0a79b

Browse files
committed
:octocat:
1 parent 6646643 commit 8c0a79b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Data/Number.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@ protected function write(string $data):void{
4747
if($this->strlen - $i === 1){
4848
$this->bitBuffer->put($this->parseInt(substr($data, $i, $i + 1)), 4);
4949
}
50-
// @codeCoverageIgnoreStart
5150
elseif($this->strlen - $i === 2){
5251
$this->bitBuffer->put($this->parseInt(substr($data, $i, $i + 2)), 7);
5352
}
54-
// @codeCoverageIgnoreEnd
5553

5654
}
5755

src/Helpers/BitBuffer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function clear():BitBuffer{
4545
public function put(int $num, int $length):BitBuffer{
4646

4747
for($i = 0; $i < $length; $i++){
48-
$this->putBit(($num >> ($length - $i - 1))&1 === 1);
48+
$this->putBit((($num >> ($length - $i - 1)) & 1) === 1);
4949
}
5050

5151
return $this;

0 commit comments

Comments
 (0)