original_string: protected function createResponse($content, $contentType)
      {
          $resp = new HttpResponse();
  
          $resp->setStatusCode(200)
               ->setContent($content);
          $resp->getHeaders()->addHeaders(array(
              'Content-Length'    => strlen($content),
              'Content-Type'      => $contentType
          ));
          return $resp;
      }
code: protected function createResponse($content, $contentType)
      {
          $resp = new HttpResponse();
  
          $resp->setStatusCode(200)
               ->setContent($content);
          $resp->getHeaders()->addHeaders(array(
              'Content-Length'    => strlen($content),
              'Content-Type'      => $contentType
          ));
          return $resp;
      }
code_tokens: protected function createResponse ( $ content , $ contentType ) { $ resp = new HttpResponse ( ) ; $ resp -> setStatusCode ( 200 ) -> setContent ( $ content ) ; $ resp -> getHeaders ( ) -> addHeaders ( array ( 'Content-Length' => strlen ( $ content ) , 'Content-Type' => $ contentType ) ) ; return $ resp ; }
docstring: Creates the response to be returned for a QR Code
  @param $content
  @param $contentType
  @return HttpResponse
docstring_tokens: Creates the response to be returned for a QR Code