original_string: protected function setDataReviewsIndexProduct()
      {
          if ($this->config('review_enabled', 1) && !empty($this->data_product['total_reviews'])) {
  
              $pager_options = array(
                  'key' => 'rep',
                  'total' => $this->data_product['total_reviews'],
                  'limit' => (int) $this->config('review_limit', 5)
              );
  
              $pager = $this->getPager($pager_options);
  
              $data = array(
                  'product' => $this->data_product,
                  'pager' => $pager['rendered'],
                  'reviews' => $this->getReviewsProduct($pager['limit'])
              );
  
              $this->setData('reviews', $this->render('review/list', $data, true));
          }
      }
code: protected function setDataReviewsIndexProduct()
      {
          if ($this->config('review_enabled', 1) && !empty($this->data_product['total_reviews'])) {
  
              $pager_options = array(
                  'key' => 'rep',
                  'total' => $this->data_product['total_reviews'],
                  'limit' => (int) $this->config('review_limit', 5)
              );
  
              $pager = $this->getPager($pager_options);
  
              $data = array(
                  'product' => $this->data_product,
                  'pager' => $pager['rendered'],
                  'reviews' => $this->getReviewsProduct($pager['limit'])
              );
  
              $this->setData('reviews', $this->render('review/list', $data, true));
          }
      }
code_tokens: protected function setDataReviewsIndexProduct ( ) { if ( $ this -> config ( 'review_enabled' , 1 ) && ! empty ( $ this -> data_product [ 'total_reviews' ] ) ) { $ pager_options = array ( 'key' => 'rep' , 'total' => $ this -> data_product [ 'total_reviews' ] , 'limit' => ( int ) $ this -> config ( 'review_limit' , 5 ) ) ; $ pager = $ this -> getPager ( $ pager_options ) ; $ data = array ( 'product' => $ this -> data_product , 'pager' => $ pager [ 'rendered' ] , 'reviews' => $ this -> getReviewsProduct ( $ pager [ 'limit' ] ) ) ; $ this -> setData ( 'reviews' , $ this -> render ( 'review/list' , $ data , true ) ) ; } }
docstring: Sets the product reviews
docstring_tokens: Sets the product reviews