| @@ 345-349 (lines=5) @@ | ||
| 342 | } |
|
| 343 | } |
|
| 344 | ||
| 345 | if (count($leftMatching)) { |
|
| 346 | $leftMatching = implode(' or ', $leftMatching); |
|
| 347 | $score = 5 * $column->getWeight(); |
|
| 348 | $case .= " + case when {$leftMatching} then {$score} else 0 end"; |
|
| 349 | } |
|
| 350 | ||
| 351 | $wildcards = []; |
|
| 352 | ||
| @@ 360-364 (lines=5) @@ | ||
| 357 | } |
|
| 358 | } |
|
| 359 | ||
| 360 | if (count($wildcards)) { |
|
| 361 | $wildcards = implode(' or ', $wildcards); |
|
| 362 | $score = 1 * $column->getWeight(); |
|
| 363 | $case .= " + case when {$wildcards} then {$score} else 0 end"; |
|
| 364 | } |
|
| 365 | } |
|
| 366 | ||
| 367 | return [$case, $bindings]; |
|