Commit b1ae165a authored by Bill Schaller's avatar Bill Schaller Committed by Steve Müller

Convert if/else to ternary

parent fcfc1898
......@@ -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