Skip to content

Commit cd380c0

Browse files
committed
avoiding extra space if not necessary
1 parent 92393ce commit cd380c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ScriptExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,6 @@ private function expandPhpScript(string $cmd, array $scriptArguments): string
135135
$phpArgs = implode(' ', array_map([ProcessExecutor::class, 'escape'], $arguments));
136136
$scriptArgs = implode(' ', array_map([ProcessExecutor::class, 'escape'], $scriptArguments));
137137

138-
return ProcessExecutor::escape($php).($phpArgs ? ' '.$phpArgs : '').' '.$cmd.' '.$scriptArgs;
138+
return ProcessExecutor::escape($php).($phpArgs ? ' '.$phpArgs : '').' '.$cmd.($scriptArgs ? ' '.$scriptArgs : '');
139139
}
140140
}

0 commit comments

Comments
 (0)