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