original_string: public function matchUrl($url)
      {
          $url = '/' . ltrim($url, '/');
          $url = $this->sanitizeUrl($url);
  
          if ($url && $route = $this->matchUrlDirectly($url)) {
              return $route;
          }
          if ($url && $route = $this->matchUrlWithParameters($url)) {
              return $route;
          }
          return null;
      }
code: public function matchUrl($url)
      {
          $url = '/' . ltrim($url, '/');
          $url = $this->sanitizeUrl($url);
  
          if ($url && $route = $this->matchUrlDirectly($url)) {
              return $route;
          }
          if ($url && $route = $this->matchUrlWithParameters($url)) {
              return $route;
          }
          return null;
      }
code_tokens: public function matchUrl ( $ url ) { $ url = '/' . ltrim ( $ url , '/' ) ; $ url = $ this -> sanitizeUrl ( $ url ) ; if ( $ url && $ route = $ this -> matchUrlDirectly ( $ url ) ) { return $ route ; } if ( $ url && $ route = $ this -> matchUrlWithParameters ( $ url ) ) { return $ route ; } return null ; }
docstring: Try to find a match in all available routes.
  
  @param string $url
  
  @return \Parable\Routing\Route|null
docstring_tokens: Try to find a match in all available routes .