original_string: protected function setSkuCombinationProduct(array &$product)
      {
          if (!empty($product['combination'])) {
              foreach ($product['combination'] as &$combination) {
  
                  $combination['path'] = $combination['thumb'] = '';
  
                  if (!empty($product['images'][$combination['file_id']])) {
                      $combination['path'] = $product['images'][$combination['file_id']]['path'];
                      $this->setItemThumb($combination, $this->image);
                  }
  
                  $combination['price'] = $this->price->decimal($combination['price'], $product['currency']);
              }
          }
      }
code: protected function setSkuCombinationProduct(array &$product)
      {
          if (!empty($product['combination'])) {
              foreach ($product['combination'] as &$combination) {
  
                  $combination['path'] = $combination['thumb'] = '';
  
                  if (!empty($product['images'][$combination['file_id']])) {
                      $combination['path'] = $product['images'][$combination['file_id']]['path'];
                      $this->setItemThumb($combination, $this->image);
                  }
  
                  $combination['price'] = $this->price->decimal($combination['price'], $product['currency']);
              }
          }
      }
code_tokens: protected function setSkuCombinationProduct ( array & $ product ) { if ( ! empty ( $ product [ 'combination' ] ) ) { foreach ( $ product [ 'combination' ] as & $ combination ) { $ combination [ 'path' ] = $ combination [ 'thumb' ] = '' ; if ( ! empty ( $ product [ 'images' ] [ $ combination [ 'file_id' ] ] ) ) { $ combination [ 'path' ] = $ product [ 'images' ] [ $ combination [ 'file_id' ] ] [ 'path' ] ; $ this -> setItemThumb ( $ combination , $ this -> image ) ; } $ combination [ 'price' ] = $ this -> price -> decimal ( $ combination [ 'price' ] , $ product [ 'currency' ] ) ; } } }
docstring: Sets product SKU combinations data
  @param array $product
docstring_tokens: Sets product SKU combinations data