original_string: protected function submitEditReview()
      {
          if ($this->isPosted('delete')) {
              $this->deleteReview();
          } else if ($this->isPosted('save') && $this->validateEditReview()) {
              if (isset($this->data_review['review_id'])) {
                  $this->updateReview();
              } else {
                  $this->addReview();
              }
          }
      }
code: protected function submitEditReview()
      {
          if ($this->isPosted('delete')) {
              $this->deleteReview();
          } else if ($this->isPosted('save') && $this->validateEditReview()) {
              if (isset($this->data_review['review_id'])) {
                  $this->updateReview();
              } else {
                  $this->addReview();
              }
          }
      }
code_tokens: protected function submitEditReview ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteReview ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditReview ( ) ) { if ( isset ( $ this -> data_review [ 'review_id' ] ) ) { $ this -> updateReview ( ) ; } else { $ this -> addReview ( ) ; } } }
docstring: Handles a submitted review
docstring_tokens: Handles a submitted review