| Conditions | 5 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | public function getLengthInBits($type){ |
||
| 54 | |||
| 55 | switch(true){ |
||
| 56 | case $type >= 1 && $type <= 9: |
||
| 57 | return $this->lengthBits[0]; // 1 - 9 |
||
| 58 | case $type <= 26: |
||
| 59 | return $this->lengthBits[1]; // 10 - 26 |
||
| 60 | case $type <= 40: |
||
| 61 | return $this->lengthBits[2]; // 27 - 40 |
||
| 62 | default: |
||
| 63 | throw new QRCodeDataException('$type: '.$type); |
||
| 64 | } |
||
| 65 | |||
| 66 | } |
||
| 67 | |||
| 69 |