original_string: public static function check($uri)
    {
      try
      {
        $uri = new self(strval($uri));
      }
      catch(\Exception $e)
      {
        return FALSE;
      }
  
      return $uri->valid();
    }
code: public static function check($uri)
    {
      try
      {
        $uri = new self(strval($uri));
      }
      catch(\Exception $e)
      {
        return FALSE;
      }
  
      return $uri->valid();
    }
code_tokens: public static function check ( $ uri ) { try { $ uri = new self ( strval ( $ uri ) ) ; } catch ( \ Exception $ e ) { return FALSE ; } return $ uri -> valid ( ) ; }
docstring: Returns TRUE if a given URI is valid.
  
  @param  string $uri
  @return boolean
docstring_tokens: Returns TRUE if a given URI is valid .