Skip to content

Commit 7acdc85

Browse files
committed
refactor: shorter build of $shellCommandLine
1 parent 70e8bae commit 7acdc85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private static function transformPipeline(array $pipeline): array
115115
$shellCommandLine = null;
116116
foreach ($pipeline as $filter) {
117117
if ($filter instanceof self) {
118-
$shellCommandLine = ($shellCommandLine === null ? '' : "{$shellCommandLine} | ") . (new Process([
118+
$shellCommandLine .= ($shellCommandLine === null ? '' : ' | ') . (new Process([
119119
$filter->command,
120120
...($filter->options ?? []),
121121
]))->getCommandLine();

0 commit comments

Comments
 (0)