original_string: protected function setOrder($order_id)
      {
          $this->data_order = array();
  
          if (is_numeric($order_id)) {
  
              $this->data_order = $this->order->get($order_id);
  
              if (empty($this->data_order)) {
                  $this->outputHttpStatus(404);
              }
  
              $this->order_history->setViewed($this->data_order);
              $this->prepareOrder($this->data_order);
          }
      }
code: protected function setOrder($order_id)
      {
          $this->data_order = array();
  
          if (is_numeric($order_id)) {
  
              $this->data_order = $this->order->get($order_id);
  
              if (empty($this->data_order)) {
                  $this->outputHttpStatus(404);
              }
  
              $this->order_history->setViewed($this->data_order);
              $this->prepareOrder($this->data_order);
          }
      }
code_tokens: protected function setOrder ( $ order_id ) { $ this -> data_order = array ( ) ; if ( is_numeric ( $ order_id ) ) { $ this -> data_order = $ this -> order -> get ( $ order_id ) ; if ( empty ( $ this -> data_order ) ) { $ this -> outputHttpStatus ( 404 ) ; } $ this -> order_history -> setViewed ( $ this -> data_order ) ; $ this -> prepareOrder ( $ this -> data_order ) ; } }
docstring: Returns an order
  @param integer $order_id
docstring_tokens: Returns an order