MCPcopy Create free account
hub / github.com/codemistic/Web-Development / createBitStream

Method createBitStream

text-to-qr/lib/phpqrcode/phpqrcode.php:1603–1617  ·  view source on GitHub ↗

----------------------------------------------------------------------

()

Source from the content-addressed store, hash-verified

1601
1602 //----------------------------------------------------------------------
1603 public function createBitStream()
1604 {
1605 $total = 0;
1606
1607 foreach($this->items as $item) {
1608 $bits = $item->encodeBitStream($this->version);
1609
1610 if($bits < 0)
1611 return -1;
1612
1613 $total += $bits;
1614 }
1615
1616 return $total;
1617 }
1618
1619 //----------------------------------------------------------------------
1620 public function convertData()

Callers 1

convertDataMethod · 0.95

Calls 1

encodeBitStreamMethod · 0.45

Tested by

no test coverage detected