original_string: public function checkPath($path = null)
    {
      if($path === null)
      {
        $path = $this->path;
      }
  
      if(strlen($path) == 0)
      {
        return TRUE;
      }
  
      $pattern = "/^" . $this->regex["path"] . "$/";
      $status = @preg_match($pattern, $path);
  
      if($status === FALSE)
      {
        throw new Exception("URI path validation failed");
      }
  
      return ($status == 1);
    }
code: public function checkPath($path = null)
    {
      if($path === null)
      {
        $path = $this->path;
      }
  
      if(strlen($path) == 0)
      {
        return TRUE;
      }
  
      $pattern = "/^" . $this->regex["path"] . "$/";
      $status = @preg_match($pattern, $path);
  
      if($status === FALSE)
      {
        throw new Exception("URI path validation failed");
      }
  
      return ($status == 1);
    }
code_tokens: public function checkPath ( $ path = null ) { if ( $ path === null ) { $ path = $ this -> path ; } if ( strlen ( $ path ) == 0 ) { return TRUE ; } $ pattern = "/^" . $ this -> regex [ "path" ] . "$/" ; $ status = @ preg_match ( $ pattern , $ path ) ; if ( $ status === FALSE ) { throw new Exception ( "URI path validation failed" ) ; } return ( $ status == 1 ) ; }
docstring: Returns TRUE if the path is valid.
  
  @param  string $path
  @throws Exception
  @return boolean
docstring_tokens: Returns TRUE if the path is valid .