original_string: private function getTraces(RequestDataCollector $request, string $method): array
      {
          $traceRequest = Request::create(
              $request->getPathInfo(),
              $request->getRequestServer(true)->get('REQUEST_METHOD'),
              [],
              $request->getRequestCookies(true)->all(),
              [],
              $request->getRequestServer(true)->all()
          );
  
          $context = $this->matcher->getContext();
          $context->setMethod($method);
          $matcher = new TraceableUrlMatcher($this->routes, $context);
  
          return $matcher->getTracesForRequest($traceRequest);
      }
code: private function getTraces(RequestDataCollector $request, string $method): array
      {
          $traceRequest = Request::create(
              $request->getPathInfo(),
              $request->getRequestServer(true)->get('REQUEST_METHOD'),
              [],
              $request->getRequestCookies(true)->all(),
              [],
              $request->getRequestServer(true)->all()
          );
  
          $context = $this->matcher->getContext();
          $context->setMethod($method);
          $matcher = new TraceableUrlMatcher($this->routes, $context);
  
          return $matcher->getTracesForRequest($traceRequest);
      }
code_tokens: private function getTraces ( RequestDataCollector $ request , string $ method ) : array { $ traceRequest = Request :: create ( $ request -> getPathInfo ( ) , $ request -> getRequestServer ( true ) -> get ( 'REQUEST_METHOD' ) , [ ] , $ request -> getRequestCookies ( true ) -> all ( ) , [ ] , $ request -> getRequestServer ( true ) -> all ( ) ) ; $ context = $ this -> matcher -> getContext ( ) ; $ context -> setMethod ( $ method ) ; $ matcher = new TraceableUrlMatcher ( $ this -> routes , $ context ) ; return $ matcher -> getTracesForRequest ( $ traceRequest ) ; }
docstring: Returns the routing traces associated to the given request.
docstring_tokens: Returns the routing traces associated to the given request .