MCPcopy Index your code
hub / github.com/codemistic/Web-Development / getCode

Method getCode

text-to-qr/lib/phpqrcode/qrencode.php:130–151  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

128
129 //----------------------------------------------------------------------
130 public function getCode()
131 {
132 $ret;
133
134 if($this->count < $this->dataLength) {
135 $row = $this->count % $this->blocks;
136 $col = $this->count / $this->blocks;
137 if($col >= $this->rsblocks[0]->dataLength) {
138 $row += $this->b1;
139 }
140 $ret = $this->rsblocks[$row]->data[$col];
141 } else if($this->count < $this->dataLength + $this->eccLength) {
142 $row = ($this->count - $this->dataLength) % $this->blocks;
143 $col = ($this->count - $this->dataLength) / $this->blocks;
144 $ret = $this->rsblocks[$row]->ecc[$col];
145 } else {
146 return 0;
147 }
148 $this->count++;
149
150 return $ret;
151 }
152 }
153
154 //##########################################################################

Callers 1

encodeMaskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected