We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
else
1 parent d8c3536 commit 447e830Copy full SHA for 447e830
src/Util.php
@@ -146,11 +146,9 @@ public static function toString($expression, $single = false)
146
$keys = '';
147
148
foreach ($expression as $key => $value) {
149
- if ($single) {
150
- $keys .= self::wrap($value).',';
151
- } else {
152
- $keys .= self::wrap($key).' => '.self::wrap($value).', ';
153
- }
+ $keys .= $single ?
+ self::wrap($value).',' :
+ self::wrap($key).' => '.self::wrap($value).', ';
154
}
155
156
$keys = trim(Str::replaceLast(',', '', $keys));
0 commit comments