original_string: protected function _prepareConjunction(TokenInterface $token)
      {
          $value = $token->value();
          $conjunction = strtolower($this->config('conjunction'));
          if ($conjunction == 'auto') {
              $conjunction = strpos($value, ',') !== false ? 'in' : 'like';
          }
  
          if ($conjunction == 'in') {
              $value = array_slice(explode(',', $value), 0, $this->config('inSlice'));
              $conjunction = $token->negated() ? 'NOT IN' : 'IN';
          } elseif ($conjunction == 'like') {
              $value = str_replace(['*', '!'], ['%', '_'], $value);
              $conjunction = $token->negated() ? 'NOT LIKE' : 'LIKE';
          } elseif ($conjunction == '=') {
              $conjunction = $token->negated() ? '<>' : '';
          } elseif ($conjunction == '<>') {
              $conjunction = $token->negated() ? '' : '<>';
          }
  
          return [$conjunction, $value];
      }
code: protected function _prepareConjunction(TokenInterface $token)
      {
          $value = $token->value();
          $conjunction = strtolower($this->config('conjunction'));
          if ($conjunction == 'auto') {
              $conjunction = strpos($value, ',') !== false ? 'in' : 'like';
          }
  
          if ($conjunction == 'in') {
              $value = array_slice(explode(',', $value), 0, $this->config('inSlice'));
              $conjunction = $token->negated() ? 'NOT IN' : 'IN';
          } elseif ($conjunction == 'like') {
              $value = str_replace(['*', '!'], ['%', '_'], $value);
              $conjunction = $token->negated() ? 'NOT LIKE' : 'LIKE';
          } elseif ($conjunction == '=') {
              $conjunction = $token->negated() ? '<>' : '';
          } elseif ($conjunction == '<>') {
              $conjunction = $token->negated() ? '' : '<>';
          }
  
          return [$conjunction, $value];
      }
code_tokens: protected function _prepareConjunction ( TokenInterface $ token ) { $ value = $ token -> value ( ) ; $ conjunction = strtolower ( $ this -> config ( 'conjunction' ) ) ; if ( $ conjunction == 'auto' ) { $ conjunction = strpos ( $ value , ',' ) !== false ? 'in' : 'like' ; } if ( $ conjunction == 'in' ) { $ value = array_slice ( explode ( ',' , $ value ) , 0 , $ this -> config ( 'inSlice' ) ) ; $ conjunction = $ token -> negated ( ) ? 'NOT IN' : 'IN' ; } elseif ( $ conjunction == 'like' ) { $ value = str_replace ( [ '*' , '!' ] , [ '%' , '_' ] , $ value ) ; $ conjunction = $ token -> negated ( ) ? 'NOT LIKE' : 'LIKE' ; } elseif ( $ conjunction == '=' ) { $ conjunction = $ token -> negated ( ) ? '<>' : '' ; } elseif ( $ conjunction == '<>' ) { $ conjunction = $ token -> negated ( ) ? '' : '<>' ; } return [ $ conjunction , $ value ] ; }
docstring: Calculates the conjunction to use and the value to use with such conjunction
  based on the given token.
  
  @param \Search\Parser\TokenInterface $token Token for which calculating the
  conjunction
  @return array Numeric index array, where the first key (0) is the
  conjunction, and the second (1) is the value.
docstring_tokens: Calculates the conjunction to use and the value to use with such conjunction based on the given token .