original_string: protected function validateEditReview()
      {
          $this->setSubmitted('review');
          $this->filterSubmitted(array('text', 'rating'));
          $this->setSubmitted('user_id', $this->uid);
          $this->setSubmitted('update', $this->data_review);
          $this->setSubmitted('product_id', $this->data_product['product_id']);
          $this->setSubmitted('status', (int) $this->config('review_status', 1));
  
          $this->validateComponent('review');
  
          return !$this->hasErrors(false);
      }
code: protected function validateEditReview()
      {
          $this->setSubmitted('review');
          $this->filterSubmitted(array('text', 'rating'));
          $this->setSubmitted('user_id', $this->uid);
          $this->setSubmitted('update', $this->data_review);
          $this->setSubmitted('product_id', $this->data_product['product_id']);
          $this->setSubmitted('status', (int) $this->config('review_status', 1));
  
          $this->validateComponent('review');
  
          return !$this->hasErrors(false);
      }
code_tokens: protected function validateEditReview ( ) { $ this -> setSubmitted ( 'review' ) ; $ this -> filterSubmitted ( array ( 'text' , 'rating' ) ) ; $ this -> setSubmitted ( 'user_id' , $ this -> uid ) ; $ this -> setSubmitted ( 'update' , $ this -> data_review ) ; $ this -> setSubmitted ( 'product_id' , $ this -> data_product [ 'product_id' ] ) ; $ this -> setSubmitted ( 'status' , ( int ) $ this -> config ( 'review_status' , 1 ) ) ; $ this -> validateComponent ( 'review' ) ; return ! $ this -> hasErrors ( false ) ; }
docstring: Validates an array of submitted review data
  @return bool
docstring_tokens: Validates an array of submitted review data