original_string: public function checkToken($request_token)
      {
          $token_manager = $this->container->get('security.csrf.token_manager');
          $token = new CsrfToken('file_manager', $request_token);
          $valid = $token_manager->isTokenValid($token);
  
          if (!$valid) {
              throw new InvalidCsrfTokenException();
          }
      }
code: public function checkToken($request_token)
      {
          $token_manager = $this->container->get('security.csrf.token_manager');
          $token = new CsrfToken('file_manager', $request_token);
          $valid = $token_manager->isTokenValid($token);
  
          if (!$valid) {
              throw new InvalidCsrfTokenException();
          }
      }
code_tokens: public function checkToken ( $ request_token ) { $ token_manager = $ this -> container -> get ( 'security.csrf.token_manager' ) ; $ token = new CsrfToken ( 'file_manager' , $ request_token ) ; $ valid = $ token_manager -> isTokenValid ( $ token ) ; if ( ! $ valid ) { throw new InvalidCsrfTokenException ( ) ; } }
docstring: Check if the form token is valid
  
  @param string $request_token
  @throws InvalidCsrfTokenException when the token is not valid
docstring_tokens: Check if the form token is valid