original_string: protected function prepareReview(array &$review)
      {
          $rating = $this->rating->getByUser($this->data_product['product_id'], $this->uid);
          $review['rating'] = isset($rating['rating']) ? $rating['rating'] : 0;
      }
code: protected function prepareReview(array &$review)
      {
          $rating = $this->rating->getByUser($this->data_product['product_id'], $this->uid);
          $review['rating'] = isset($rating['rating']) ? $rating['rating'] : 0;
      }
code_tokens: protected function prepareReview ( array & $ review ) { $ rating = $ this -> rating -> getByUser ( $ this -> data_product [ 'product_id' ] , $ this -> uid ) ; $ review [ 'rating' ] = isset ( $ rating [ 'rating' ] ) ? $ rating [ 'rating' ] : 0 ; }
docstring: Prepares an array of review data
  @param array $review
docstring_tokens: Prepares an array of review data