mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-28 06:35:27 +00:00
optimization and cleanup
This commit is contained in:
+3
-1
@@ -34,8 +34,10 @@ class Byte extends QRDataBase implements QRDataInterface{
|
||||
* @param \chillerlan\QRCode\BitBuffer $buffer
|
||||
*/
|
||||
public function write(BitBuffer &$buffer){
|
||||
for($i = 0; $i < $this->dataLength; $i++){
|
||||
$i = 0;
|
||||
while($i < $this->dataLength){
|
||||
$buffer->put(ord($this->data[$i]), 8);
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user