original_string: protected function finishAddOrderCheckout(array $result)
      {
          if (!empty($result['order']['order_id'])) {
  
              $vars = array(
                  '@num' => $result['order']['order_id'],
                  '@name' => $result['order']['customer_name'],
                  '@status' => $this->order->getStatusName($result['order']['status'])
              );
  
              $message = $this->text('Order #@num has been created for user @name. Order status: @status', $vars);
              $this->redirect("admin/sale/order/{$result['order']['order_id']}", $message, 'success');
          }
      }
code: protected function finishAddOrderCheckout(array $result)
      {
          if (!empty($result['order']['order_id'])) {
  
              $vars = array(
                  '@num' => $result['order']['order_id'],
                  '@name' => $result['order']['customer_name'],
                  '@status' => $this->order->getStatusName($result['order']['status'])
              );
  
              $message = $this->text('Order #@num has been created for user @name. Order status: @status', $vars);
              $this->redirect("admin/sale/order/{$result['order']['order_id']}", $message, 'success');
          }
      }
code_tokens: protected function finishAddOrderCheckout ( array $ result ) { if ( ! empty ( $ result [ 'order' ] [ 'order_id' ] ) ) { $ vars = array ( '@num' => $ result [ 'order' ] [ 'order_id' ] , '@name' => $ result [ 'order' ] [ 'customer_name' ] , '@status' => $ this -> order -> getStatusName ( $ result [ 'order' ] [ 'status' ] ) ) ; $ message = $ this -> text ( 'Order #@num has been created for user @name. Order status: @status' , $ vars ) ; $ this -> redirect ( "admin/sale/order/{$result['order']['order_id']}" , $ message , 'success' ) ; } }
docstring: Performs final tasks after an order has been added for a user
  @param array $result
docstring_tokens: Performs final tasks after an order has been added for a user