original_string: public function updateResponseHeaders(Request $request, Response $response)
      {
          if ($this->cspDisabled) {
              $this->removeCspHeaders($response);
  
              return [];
          }
  
          $nonces = $this->getNonces($request, $response);
          $this->cleanHeaders($response);
          $this->updateCspHeaders($response, $nonces);
  
          return $nonces;
      }
code: public function updateResponseHeaders(Request $request, Response $response)
      {
          if ($this->cspDisabled) {
              $this->removeCspHeaders($response);
  
              return [];
          }
  
          $nonces = $this->getNonces($request, $response);
          $this->cleanHeaders($response);
          $this->updateCspHeaders($response, $nonces);
  
          return $nonces;
      }
code_tokens: public function updateResponseHeaders ( Request $ request , Response $ response ) { if ( $ this -> cspDisabled ) { $ this -> removeCspHeaders ( $ response ) ; return [ ] ; } $ nonces = $ this -> getNonces ( $ request , $ response ) ; $ this -> cleanHeaders ( $ response ) ; $ this -> updateCspHeaders ( $ response , $ nonces ) ; return $ nonces ; }
docstring: Cleanup temporary headers and updates Content-Security-Policy headers.
  
  @return array Nonces used by the bundle in Content-Security-Policy header
docstring_tokens: Cleanup temporary headers and updates Content - Security - Policy headers .