@@ 338-343 (lines=6) @@ | ||
335 | if (strpos(implode('', $words), '*') !== false) { |
|
336 | $leftMatching = []; |
|
337 | ||
338 | foreach ($words as $key => $word) { |
|
339 | if ($this->isLeftMatching($word)) { |
|
340 | $leftMatching[] = sprintf('%s %s ?', $column->getWrapped(), $operator); |
|
341 | $bindings['select'][] = $bindings['where'][$key] = $this->caseBinding($word) . '%'; |
|
342 | } |
|
343 | } |
|
344 | ||
345 | if (count($leftMatching)) { |
|
346 | $leftMatching = implode(' or ', $leftMatching); |
|
@@ 353-358 (lines=6) @@ | ||
350 | ||
351 | $wildcards = []; |
|
352 | ||
353 | foreach ($words as $key => $word) { |
|
354 | if ($this->isWildcard($word)) { |
|
355 | $wildcards[] = sprintf('%s %s ?', $column->getWrapped(), $operator); |
|
356 | $bindings['select'][] = $bindings['where'][$key] = '%'.$this->caseBinding($word) . '%'; |
|
357 | } |
|
358 | } |
|
359 | ||
360 | if (count($wildcards)) { |
|
361 | $wildcards = implode(' or ', $wildcards); |