original_string: public function multipleOptions($field, array $options = [], $message = null, $when = null)
      {
          $extra = array_filter(['on' => $when, 'message' => $message]);
          $caseInsensitive = isset($options['caseInsensitive']) ? $options['caseInsensitive'] : false;
          unset($options['caseInsensitive']);
  
          return $this->add($field, 'multipleOptions', $extra + [
              'rule' => ['multiple', $options, $caseInsensitive]
          ]);
      }
code: public function multipleOptions($field, array $options = [], $message = null, $when = null)
      {
          $extra = array_filter(['on' => $when, 'message' => $message]);
          $caseInsensitive = isset($options['caseInsensitive']) ? $options['caseInsensitive'] : false;
          unset($options['caseInsensitive']);
  
          return $this->add($field, 'multipleOptions', $extra + [
              'rule' => ['multiple', $options, $caseInsensitive]
          ]);
      }
code_tokens: public function multipleOptions ( $ field , array $ options = [ ] , $ message = null , $ when = null ) { $ extra = array_filter ( [ 'on' => $ when , 'message' => $ message ] ) ; $ caseInsensitive = isset ( $ options [ 'caseInsensitive' ] ) ? $ options [ 'caseInsensitive' ] : false ; unset ( $ options [ 'caseInsensitive' ] ) ; return $ this -> add ( $ field , 'multipleOptions' , $ extra + [ 'rule' => [ 'multiple' , $ options , $ caseInsensitive ] ] ) ; }
docstring: Add a validation rule for a multiple select. Comparison is case sensitive by default.
  
  @param string $field The field you want to apply the rule to.
  @param array $options The options for the validator. Includes the options defined in
  \Cake\Validation\Validation::multiple() and the `caseInsensitive` parameter.
  @param string|null $message The error message when the rule fails.
  @param string|callable|null $when Either 'create' or 'update' or a callable that returns
  true when the validation rule should be applied.
  @see \Cake\Validation\Validation::multiple()
  @return $this
docstring_tokens: Add a validation rule for a multiple select . Comparison is case sensitive by default .