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

Method checkModeNum

text-to-qr/lib/phpqrcode/qrinput.php:389–398  ·  view source on GitHub ↗

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

($size, $data)

Source from the content-addressed store, hash-verified

387
388 //----------------------------------------------------------------------
389 public static function checkModeNum($size, $data)
390 {
391 for($i=0; $i<$size; $i++) {
392 if((ord($data[$i]) < ord('0')) || (ord($data[$i]) > ord('9'))){
393 return false;
394 }
395 }
396
397 return true;
398 }
399
400 //----------------------------------------------------------------------
401 public static function estimateBitsModeNum($size)

Callers 1

checkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected