original_string: public function setItemOrderPaymentName(&$item, $payment_model)
      {
          if (isset($item['payment'])) {
              $data = $payment_model->get($item['payment']);
              $item['payment_name'] = empty($data['title']) ? 'Unknown' : $data['title'];
          }
      }
code: public function setItemOrderPaymentName(&$item, $payment_model)
      {
          if (isset($item['payment'])) {
              $data = $payment_model->get($item['payment']);
              $item['payment_name'] = empty($data['title']) ? 'Unknown' : $data['title'];
          }
      }
code_tokens: public function setItemOrderPaymentName ( & $ item , $ payment_model ) { if ( isset ( $ item [ 'payment' ] ) ) { $ data = $ payment_model -> get ( $ item [ 'payment' ] ) ; $ item [ 'payment_name' ] = empty ( $ data [ 'title' ] ) ? 'Unknown' : $ data [ 'title' ] ; } }
docstring: Adds "payment_name" key
  @param array $item
  @param \gplcart\core\models\Payment $payment_model
docstring_tokens: Adds payment_name key