Skip to content

Commit 8d96dd7

Browse files
authored
Merge pull request #12 from petrknap/internal-refactoring
Shorter build of `$shellCommandLine`
2 parents 82fa04c + 7acdc85 commit 8d96dd7

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)