original_string: public function generateAction()
      {
          $extension  = $this->params()->fromRoute('extension', QrCodeServiceInterface::DEFAULT_EXTENSION);
          $content    = $this->qrCodeService->getQrCodeContent($this->params());
          return $this->createResponse($content, $this->qrCodeService->generateContentType($extension));
      }
code: public function generateAction()
      {
          $extension  = $this->params()->fromRoute('extension', QrCodeServiceInterface::DEFAULT_EXTENSION);
          $content    = $this->qrCodeService->getQrCodeContent($this->params());
          return $this->createResponse($content, $this->qrCodeService->generateContentType($extension));
      }
code_tokens: public function generateAction ( ) { $ extension = $ this -> params ( ) -> fromRoute ( 'extension' , QrCodeServiceInterface :: DEFAULT_EXTENSION ) ; $ content = $ this -> qrCodeService -> getQrCodeContent ( $ this -> params ( ) ) ; return $ this -> createResponse ( $ content , $ this -> qrCodeService -> generateContentType ( $ extension ) ) ; }
docstring: Generates the QR code and returns it as stream
docstring_tokens: Generates the QR code and returns it as stream