original_string: protected function _addFilteringCondition($query, $key, $filter)
      {
          if (is_array($key)) {
              $conditions = $this->_createTupleCondition($query, $key, $filter, 'IN');
          }
  
          $conditions = isset($conditions) ? $conditions : [$key . ' IN' => $filter];
  
          return $query->andWhere($conditions);
      }
code: protected function _addFilteringCondition($query, $key, $filter)
      {
          if (is_array($key)) {
              $conditions = $this->_createTupleCondition($query, $key, $filter, 'IN');
          }
  
          $conditions = isset($conditions) ? $conditions : [$key . ' IN' => $filter];
  
          return $query->andWhere($conditions);
      }
code_tokens: protected function _addFilteringCondition ( $ query , $ key , $ filter ) { if ( is_array ( $ key ) ) { $ conditions = $ this -> _createTupleCondition ( $ query , $ key , $ filter , 'IN' ) ; } $ conditions = isset ( $ conditions ) ? $ conditions : [ $ key . ' IN' => $ filter ] ; return $ query -> andWhere ( $ conditions ) ; }
docstring: Appends any conditions required to load the relevant set of records in the
  target table query given a filter key and some filtering values.
  
  @param \Cake\ORM\Query $query Target table's query
  @param string|array $key The fields that should be used for filtering
  @param mixed $filter The value that should be used to match for $key
  @return \Cake\ORM\Query
docstring_tokens: Appends any conditions required to load the relevant set of records in the target table query given a filter key and some filtering values .