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