original_string: protected function validateSubtractProduct()
      {
          $field = 'subtract';
          $value = $this->getSubmitted($field);
  
          if (isset($value)) {
              $this->setSubmitted($field, filter_var($value, FILTER_VALIDATE_BOOLEAN));
          }
  
          return true;
      }
code: protected function validateSubtractProduct()
      {
          $field = 'subtract';
          $value = $this->getSubmitted($field);
  
          if (isset($value)) {
              $this->setSubmitted($field, filter_var($value, FILTER_VALIDATE_BOOLEAN));
          }
  
          return true;
      }
code_tokens: protected function validateSubtractProduct ( ) { $ field = 'subtract' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( isset ( $ value ) ) { $ this -> setSubmitted ( $ field , filter_var ( $ value , FILTER_VALIDATE_BOOLEAN ) ) ; } return true ; }
docstring: Validates "Subtract" bool value
  @return boolean
docstring_tokens: Validates Subtract bool value