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

Method checkModeNum

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

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

($size, $data)

Source from the content-addressed store, hash-verified

1400
1401 //----------------------------------------------------------------------
1402 public static function checkModeNum($size, $data)
1403 {
1404 for($i=0; $i<$size; $i++) {
1405 if((ord($data[$i]) < ord('0')) || (ord($data[$i]) > ord('9'))){
1406 return false;
1407 }
1408 }
1409
1410 return true;
1411 }
1412
1413 //----------------------------------------------------------------------
1414 public static function estimateBitsModeNum($size)

Callers 1

checkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected