original_string: protected function logUpdateStatusOrder(array $submitted)
      {
          if ($this->data_order['status'] != $submitted['status']) {
  
              $log = array(
                  'user_id' => $this->uid,
                  'order_id' => $this->data_order['order_id'],
                  'text' => $this->text('Update order status to @status', array('@status' => $submitted['status']))
              );
  
              $this->order_history->add($log);
          }
      }
code: protected function logUpdateStatusOrder(array $submitted)
      {
          if ($this->data_order['status'] != $submitted['status']) {
  
              $log = array(
                  'user_id' => $this->uid,
                  'order_id' => $this->data_order['order_id'],
                  'text' => $this->text('Update order status to @status', array('@status' => $submitted['status']))
              );
  
              $this->order_history->add($log);
          }
      }
code_tokens: protected function logUpdateStatusOrder ( array $ submitted ) { if ( $ this -> data_order [ 'status' ] != $ submitted [ 'status' ] ) { $ log = array ( 'user_id' => $ this -> uid , 'order_id' => $ this -> data_order [ 'order_id' ] , 'text' => $ this -> text ( 'Update order status to @status' , array ( '@status' => $ submitted [ 'status' ] ) ) ) ; $ this -> order_history -> add ( $ log ) ; } }
docstring: Log the status updated event
  @param array $submitted
docstring_tokens: Log the status updated event