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

Method append

text-to-qr/lib/phpqrcode/qrbitstream.php:88–106  ·  view source on GitHub ↗

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

(QRbitstream $arg)

Source from the content-addressed store, hash-verified

86
87 //----------------------------------------------------------------------
88 public function append(QRbitstream $arg)
89 {
90 if (is_null($arg)) {
91 return -1;
92 }
93
94 if($arg->size() == 0) {
95 return 0;
96 }
97
98 if($this->size() == 0) {
99 $this->data = $arg->data;
100 return 0;
101 }
102
103 $this->data = array_values(array_merge($this->data, $arg->data));
104
105 return 0;
106 }
107
108 //----------------------------------------------------------------------
109 public function appendNum($bits, $num)

Callers 2

appendNumMethod · 0.95
appendBytesMethod · 0.95

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected