Skip to content

Commit

Permalink
[TASK] Use sprintf instead of string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed Mar 1, 2016
1 parent 225f597 commit 6ec99b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function executeLocalShellCommand($command, $arguments = [], $options
*/
protected function executeLocalShellCommandWithFlowContext($command, $arguments = [], $options = [])
{
$flowCommand = 'FLOW_CONTEXT=' . $this->bootstrap->getContext() . ' ' . $command;
$flowCommand = sprintf('FLOW_CONTEXT=%s %s', $this->bootstrap->getContext(), $command);
return $this->executeLocalShellCommand($flowCommand, $arguments, $options);
}

Expand All @@ -75,7 +75,7 @@ protected function executeLocalShellCommandWithFlowContext($command, $arguments
*/
protected function executeLocalFlowCommand($command, $arguments = [], $options = [])
{
$flowCommand = './flow ' . $command;
$flowCommand = sprintf('./flow %s', $command);
return $this->executeLocalShellCommandWithFlowContext($flowCommand, $arguments, $options);
}

Expand Down

0 comments on commit 6ec99b1

Please sign in to comment.