original_string: public static function isConnected($conn)
      {
          return (is_null($conn) !== true &&
                  is_resource($conn) === true &&
                  strtolower(get_resource_type($conn)) == 'socket');
      }
code: public static function isConnected($conn)
      {
          return (is_null($conn) !== true &&
                  is_resource($conn) === true &&
                  strtolower(get_resource_type($conn)) == 'socket');
      }
code_tokens: public static function isConnected ( $ conn ) { return ( is_null ( $ conn ) !== true && is_resource ( $ conn ) === true && strtolower ( get_resource_type ( $ conn ) ) == 'socket' ) ; }
docstring: Are we connected?
  
  @param resource $conn The connection/socket to check
  
  @return bool False if we aren't connected
docstring_tokens: Are we connected?