Skip to content

Commit b748791

Browse files
committed
merged mdrollette fixes for PR php-amqplib#2
2 parents 0c57b72 + c57fbb2 commit b748791

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PhpAmqpLib/Channel/AbstractChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function next_frame()
117117
MiscHelper::debug_msg("waiting for a new frame");
118118
}
119119

120-
if($this->frame_queue != null) {
120+
if(!empty($this->frame_queue)) {
121121
return array_pop($this->frame_queue);
122122
}
123123

PhpAmqpLib/Wire/AMQPWriter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private static function bytesplit($x, $bytes)
3333
while ($bytes > 0) {
3434
$b = bcmod($x,'256');
3535
$res[] = (int)$b;
36-
$x = bcdiv($x,'256',0);
36+
$x = bcdiv($x,'256', 0);
3737
$bytes--;
3838
}
3939

0 commit comments

Comments
 (0)