original_string: protected function prepareValueAndOperator($value, $operator, $useDefault = false)
      {
          if ($useDefault) {
              return [$operator, '='];
          }
          if ($this->invalidOperatorAndValue($operator, $value)) {
              throw new InvalidArgumentException('Illegal operator and value combination.');
          }
  
          return [$value, $operator];
      }
code: protected function prepareValueAndOperator($value, $operator, $useDefault = false)
      {
          if ($useDefault) {
              return [$operator, '='];
          }
          if ($this->invalidOperatorAndValue($operator, $value)) {
              throw new InvalidArgumentException('Illegal operator and value combination.');
          }
  
          return [$value, $operator];
      }
code_tokens: protected function prepareValueAndOperator ( $ value , $ operator , $ useDefault = false ) { if ( $ useDefault ) { return [ $ operator , '=' ] ; } if ( $ this -> invalidOperatorAndValue ( $ operator , $ value ) ) { throw new InvalidArgumentException ( 'Illegal operator and value combination.' ) ; } return [ $ value , $ operator ] ; }
docstring: Prepare the value and operator for a where clause.
  
  @param string $value
  @param string $operator
  @param bool   $useDefault
  
  @throws \InvalidArgumentException
  
  @return array
docstring_tokens: Prepare the value and operator for a where clause .