original_string: public function newAction()
      {
          $stocktransfer = new StockTransfer();
  
          $nextCode = $this->get('flower.stock.service.stock_transfer')->getNextCode();
          $stocktransfer->setCode($nextCode);
          $stocktransfer->setUser($this->getUser());
  
          $form = $this->createForm(new StockTransferType(), $stocktransfer);
  
          return array(
              'stocktransfer' => $stocktransfer,
              'form' => $form->createView(),
          );
      }
code: public function newAction()
      {
          $stocktransfer = new StockTransfer();
  
          $nextCode = $this->get('flower.stock.service.stock_transfer')->getNextCode();
          $stocktransfer->setCode($nextCode);
          $stocktransfer->setUser($this->getUser());
  
          $form = $this->createForm(new StockTransferType(), $stocktransfer);
  
          return array(
              'stocktransfer' => $stocktransfer,
              'form' => $form->createView(),
          );
      }
code_tokens: public function newAction ( ) { $ stocktransfer = new StockTransfer ( ) ; $ nextCode = $ this -> get ( 'flower.stock.service.stock_transfer' ) -> getNextCode ( ) ; $ stocktransfer -> setCode ( $ nextCode ) ; $ stocktransfer -> setUser ( $ this -> getUser ( ) ) ; $ form = $ this -> createForm ( new StockTransferType ( ) , $ stocktransfer ) ; return array ( 'stocktransfer' => $ stocktransfer , 'form' => $ form -> createView ( ) , ) ; }
docstring: Displays a form to create a new StockTransfer entity.
  
  @Route("/new", name="stock_transfers_new")
  @Method("GET")
  @Template()
docstring_tokens: Displays a form to create a new StockTransfer entity .