@@ 330-335 (lines=6) @@ | ||
327 | if (strpos(implode('', $words), '*') !== false) { |
|
328 | $leftMatching = []; |
|
329 | ||
330 | foreach ($words as $key => $word) { |
|
331 | if ($this->isLeftMatching($word)) { |
|
332 | $leftMatching[] = sprintf('%s %s ?', $column->getWrapped(), $operator); |
|
333 | $bindings['select'][] = $bindings['where'][$key] = $this->caseBinding($word) . '%'; |
|
334 | } |
|
335 | } |
|
336 | ||
337 | if (count($leftMatching)) { |
|
338 | $leftMatching = implode(' or ', $leftMatching); |
|
@@ 345-350 (lines=6) @@ | ||
342 | ||
343 | $wildcards = []; |
|
344 | ||
345 | foreach ($words as $key => $word) { |
|
346 | if ($this->isWildcard($word)) { |
|
347 | $wildcards[] = sprintf('%s %s ?', $column->getWrapped(), $operator); |
|
348 | $bindings['select'][] = $bindings['where'][$key] = '%' . $this->caseBinding($word) . '%'; |
|
349 | } |
|
350 | } |
|
351 | ||
352 | if (count($wildcards)) { |
|
353 | $wildcards = implode(' or ', $wildcards); |