original_string: private function restoreResponse($headers, $body = null)
      {
          $status = $headers['X-Status'][0];
          unset($headers['X-Status']);
  
          if (null !== $body) {
              $headers['X-Body-File'] = [$body];
          }
  
          return new Response($body, $status, $headers);
      }
code: private function restoreResponse($headers, $body = null)
      {
          $status = $headers['X-Status'][0];
          unset($headers['X-Status']);
  
          if (null !== $body) {
              $headers['X-Body-File'] = [$body];
          }
  
          return new Response($body, $status, $headers);
      }
code_tokens: private function restoreResponse ( $ headers , $ body = null ) { $ status = $ headers [ 'X-Status' ] [ 0 ] ; unset ( $ headers [ 'X-Status' ] ) ; if ( null !== $ body ) { $ headers [ 'X-Body-File' ] = [ $ body ] ; } return new Response ( $ body , $ status , $ headers ) ; }
docstring: Restores a Response from the HTTP headers and body.
  
  @param array  $headers An array of HTTP headers for the Response
  @param string $body    The Response body
  
  @return Response
docstring_tokens: Restores a Response from the HTTP headers and body .