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

Method append

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

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

(QRbitstream $arg)

Source from the content-addressed store, hash-verified

1835
1836 //----------------------------------------------------------------------
1837 public function append(QRbitstream $arg)
1838 {
1839 if (is_null($arg)) {
1840 return -1;
1841 }
1842
1843 if($arg->size() == 0) {
1844 return 0;
1845 }
1846
1847 if($this->size() == 0) {
1848 $this->data = $arg->data;
1849 return 0;
1850 }
1851
1852 $this->data = array_values(array_merge($this->data, $arg->data));
1853
1854 return 0;
1855 }
1856
1857 //----------------------------------------------------------------------
1858 public function appendNum($bits, $num)

Callers 2

appendNumMethod · 0.95
appendBytesMethod · 0.95

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected