original_string: public function match(Request $request)
      {
          foreach ($this->firewalls as $firewall) {
              if ($firewall['method'] !== null && $request->getMethod() !== $firewall['method']) {
                  continue;
              }
  
              if ($firewall['exact_match']) {
                  if ($request->getPathInfo() === $firewall['path']) {
                      return $firewall;
                  }
              } elseif (0 === strpos($request->getPathInfo(), $firewall['path'])) {
                  return $firewall;
              }
          }
  
          return null;
      }
code: public function match(Request $request)
      {
          foreach ($this->firewalls as $firewall) {
              if ($firewall['method'] !== null && $request->getMethod() !== $firewall['method']) {
                  continue;
              }
  
              if ($firewall['exact_match']) {
                  if ($request->getPathInfo() === $firewall['path']) {
                      return $firewall;
                  }
              } elseif (0 === strpos($request->getPathInfo(), $firewall['path'])) {
                  return $firewall;
              }
          }
  
          return null;
      }
code_tokens: public function match ( Request $ request ) { foreach ( $ this -> firewalls as $ firewall ) { if ( $ firewall [ 'method' ] !== null && $ request -> getMethod ( ) !== $ firewall [ 'method' ] ) { continue ; } if ( $ firewall [ 'exact_match' ] ) { if ( $ request -> getPathInfo ( ) === $ firewall [ 'path' ] ) { return $ firewall ; } } elseif ( 0 === strpos ( $ request -> getPathInfo ( ) , $ firewall [ 'path' ] ) ) { return $ firewall ; } } return null ; }
docstring: Find the matching path
docstring_tokens: Find the matching path