Commit 729440a9 authored by Bill Schaller's avatar Bill Schaller

Convert if/else to ternary

parent d922edb0
......@@ -1274,12 +1274,9 @@ class SQLServerPlatform extends AbstractPlatform
if ($query[$currentPosition] === ')') {
$parenCount++;
}
if ($parenCount === 0) {
// Only yank query text on the same nesting level as the ORDER BY clause.
$subQueryBuffer = $query[$currentPosition] . $subQueryBuffer;
} else {
$subQueryBuffer = " " . $subQueryBuffer;
}
// Only yank query text on the same nesting level as the ORDER BY clause.
$subQueryBuffer = ($parenCount === 0 ? $query[$currentPosition] : " ") . $subQueryBuffer;
$currentPosition--;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment