From 6ec99b1fdc8c08c4aee0d73269fc6aceef83c7fc Mon Sep 17 00:00:00 2001 From: Wilhelm Behncke Date: Tue, 1 Mar 2016 17:47:18 +0100 Subject: [PATCH] [TASK] Use sprintf instead of string concatenation --- .../Sitegeist/MagicWand/Command/AbstractCommandController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Sitegeist/MagicWand/Command/AbstractCommandController.php b/Classes/Sitegeist/MagicWand/Command/AbstractCommandController.php index 075d3c7..c0a8c72 100644 --- a/Classes/Sitegeist/MagicWand/Command/AbstractCommandController.php +++ b/Classes/Sitegeist/MagicWand/Command/AbstractCommandController.php @@ -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); } @@ -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); }