original_string: protected function finishCloneOrderCheckout(array $result)
      {
          if (!empty($result['order']['order_id'])) {
  
              $log = array(
                  'user_id' => $this->uid,
                  'order_id' => $this->data_order['order_id'],
                  'text' => $this->text('Cloned into order #@num', array('@num' => $result['order']['order_id']))
              );
  
              $this->order_history->add($log);
  
              $vars = array(
                  '@num' => $this->data_order['order_id'],
                  '@url' => $this->url("admin/sale/order/{$this->order_id}"),
                  '@status' => $this->order->getStatusName($result['order']['status'])
              );
  
              $message = $this->text('Order has been cloned from order <a href="@url">@num</a>. Order status: @status', $vars);
              $this->redirect("admin/sale/order/{$result['order']['order_id']}", $message, 'success');
          }
      }
code: protected function finishCloneOrderCheckout(array $result)
      {
          if (!empty($result['order']['order_id'])) {
  
              $log = array(
                  'user_id' => $this->uid,
                  'order_id' => $this->data_order['order_id'],
                  'text' => $this->text('Cloned into order #@num', array('@num' => $result['order']['order_id']))
              );
  
              $this->order_history->add($log);
  
              $vars = array(
                  '@num' => $this->data_order['order_id'],
                  '@url' => $this->url("admin/sale/order/{$this->order_id}"),
                  '@status' => $this->order->getStatusName($result['order']['status'])
              );
  
              $message = $this->text('Order has been cloned from order <a href="@url">@num</a>. Order status: @status', $vars);
              $this->redirect("admin/sale/order/{$result['order']['order_id']}", $message, 'success');
          }
      }
code_tokens: protected function finishCloneOrderCheckout ( array $ result ) { if ( ! empty ( $ result [ 'order' ] [ 'order_id' ] ) ) { $ log = array ( 'user_id' => $ this -> uid , 'order_id' => $ this -> data_order [ 'order_id' ] , 'text' => $ this -> text ( 'Cloned into order #@num' , array ( '@num' => $ result [ 'order' ] [ 'order_id' ] ) ) ) ; $ this -> order_history -> add ( $ log ) ; $ vars = array ( '@num' => $ this -> data_order [ 'order_id' ] , '@url' => $ this -> url ( "admin/sale/order/{$this->order_id}" ) , '@status' => $ this -> order -> getStatusName ( $ result [ 'order' ] [ 'status' ] ) ) ; $ message = $ this -> text ( 'Order has been cloned from order <a href="@url">@num</a>. Order status: @status' , $ vars ) ; $ this -> redirect ( "admin/sale/order/{$result['order']['order_id']}" , $ message , 'success' ) ; } }
docstring: Performs final tasks after an order has been cloned
  @param array $result
docstring_tokens: Performs final tasks after an order has been cloned