optimization and cleanup

This commit is contained in:
smiley
2016-02-24 02:49:53 +01:00
parent 3c4102d4b5
commit 99084fcb9f
9 changed files with 133 additions and 119 deletions
+3 -1
View File
@@ -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++;
}
}