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 ...@@ -1274,12 +1274,9 @@ class SQLServerPlatform extends AbstractPlatform
if ($query[$currentPosition] === ')') { if ($query[$currentPosition] === ')') {
$parenCount++; $parenCount++;
} }
if ($parenCount === 0) {
// Only yank query text on the same nesting level as the ORDER BY clause. // Only yank query text on the same nesting level as the ORDER BY clause.
$subQueryBuffer = $query[$currentPosition] . $subQueryBuffer; $subQueryBuffer = ($parenCount === 0 ? $query[$currentPosition] : " ") . $subQueryBuffer;
} else {
$subQueryBuffer = " " . $subQueryBuffer;
}
$currentPosition--; $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