| @@ 339-343 (lines=5) @@ | ||
| 336 | } |
|
| 337 | } |
|
| 338 | ||
| 339 | if (count($leftMatching)) { |
|
| 340 | $leftMatching = implode(' or ', $leftMatching); |
|
| 341 | $score = 5 * $column->getWeight(); |
|
| 342 | $case .= " + case when {$leftMatching} then {$score} else 0 end"; |
|
| 343 | } |
|
| 344 | ||
| 345 | $wildcards = []; |
|
| 346 | ||
| @@ 354-358 (lines=5) @@ | ||
| 351 | } |
|
| 352 | } |
|
| 353 | ||
| 354 | if (count($wildcards)) { |
|
| 355 | $wildcards = implode(' or ', $wildcards); |
|
| 356 | $score = 1 * $column->getWeight(); |
|
| 357 | $case .= " + case when {$wildcards} then {$score} else 0 end"; |
|
| 358 | } |
|
| 359 | } |
|
| 360 | ||
| 361 | return [$case, $bindings]; |
|