original_string: private function checkPartMatchingType($value, $type)
      {
          switch ($type) {
              case "digit":
                  return ctype_digit($value);
                  break;
  
              case "hex":
                  return ctype_xdigit($value);
                  break;
  
              case "alpha":
                  return ctype_alpha($value);
                  break;
  
              case "alphanum":
                  return ctype_alnum($value);
                  break;
  
              default:
                  return false;
          }
      }
code: private function checkPartMatchingType($value, $type)
      {
          switch ($type) {
              case "digit":
                  return ctype_digit($value);
                  break;
  
              case "hex":
                  return ctype_xdigit($value);
                  break;
  
              case "alpha":
                  return ctype_alpha($value);
                  break;
  
              case "alphanum":
                  return ctype_alnum($value);
                  break;
  
              default:
                  return false;
          }
      }
code_tokens: private function checkPartMatchingType ( $ value , $ type ) { switch ( $ type ) { case "digit" : return ctype_digit ( $ value ) ; break ; case "hex" : return ctype_xdigit ( $ value ) ; break ; case "alpha" : return ctype_alpha ( $ value ) ; break ; case "alphanum" : return ctype_alnum ( $ value ) ; break ; default : return false ; } }
docstring: Check if value is matching a certain type of values.
  
  @param string $value   the value to check.
  @param array  $type    the expected type to check against.
  
  @return boolean
docstring_tokens: Check if value is matching a certain type of values .