original_string: protected function setPrice(array &$data)
      {
          if (!empty($data['price']) && !empty($data['currency'])) {
              $data['price'] = $this->price->amount($data['price'], $data['currency']);
          }
      }
code: protected function setPrice(array &$data)
      {
          if (!empty($data['price']) && !empty($data['currency'])) {
              $data['price'] = $this->price->amount($data['price'], $data['currency']);
          }
      }
code_tokens: protected function setPrice ( array & $ data ) { if ( ! empty ( $ data [ 'price' ] ) && ! empty ( $ data [ 'currency' ] ) ) { $ data [ 'price' ] = $ this -> price -> amount ( $ data [ 'price' ] , $ data [ 'currency' ] ) ; } }
docstring: Converts a price value to minor units
  @param array $data
docstring_tokens: Converts a price value to minor units