@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $command = 'kill'; |
81 | 81 | |
82 | 82 | if ($signal !== 'SIGKILL') { |
83 | - $command .= ' -s ' . $signal; |
|
83 | + $command .= ' -s '.$signal; |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | return $this->processResult( |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | */ |
169 | 169 | public function run($service, $command, $composeFiles = array()) |
170 | 170 | { |
171 | - $command = 'run --rm ' . $service . ' ' . $command; |
|
171 | + $command = 'run --rm '.$service.' '.$command; |
|
172 | 172 | $result = $this->execute( |
173 | 173 | $this->formatCommand($command, $this->createComposeFileCollection($composeFiles)) |
174 | 174 | ); |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | { |
204 | 204 | $command = $this->formatCommand('ps', $this->createComposeFileCollection($composeFiles)); |
205 | 205 | |
206 | - $command = 'for CONTAINER in $(' . $command . ' -q); '; |
|
206 | + $command = 'for CONTAINER in $('.$command.' -q); '; |
|
207 | 207 | $command .= 'do echo "$(docker inspect --format \' {{ .Name }} \' $CONTAINER)\t'; |
208 | 208 | $command .= '$(docker inspect --format \' {{ .NetworkSettings.IPAddress }} \' $CONTAINER)"; done'; |
209 | 209 | |
@@ -275,11 +275,11 @@ discard block |
||
275 | 275 | |
276 | 276 | # Add project name, and network options |
277 | 277 | if ($composeFiles->getProjectName() != null) { |
278 | - $project = ' --project-name ' . $composeFiles->getProjectName(); |
|
278 | + $project = ' --project-name '.$composeFiles->getProjectName(); |
|
279 | 279 | if ($composeFiles->isNetworking()) { |
280 | 280 | $networking = ' --x-networking'; |
281 | 281 | if ($composeFiles->getNetworkDriver() != null) { |
282 | - $networkDriver = ' --x-network-driver ' . $composeFiles->getNetworkDriver(); |
|
282 | + $networkDriver = ' --x-network-driver '.$composeFiles->getNetworkDriver(); |
|
283 | 283 | } |
284 | 284 | } |
285 | 285 | } |
@@ -287,10 +287,10 @@ discard block |
||
287 | 287 | # Add files names |
288 | 288 | $preciseFiles = ''; |
289 | 289 | foreach ($composeFiles->getAll() as $composeFile) { |
290 | - $preciseFiles .= ' -f ' . $composeFile->getFileName(); |
|
290 | + $preciseFiles .= ' -f '.$composeFile->getFileName(); |
|
291 | 291 | } |
292 | 292 | |
293 | - $command = 'docker-compose' . $preciseFiles . $networking . $networkDriver . $project . ' ' . $subcommand; |
|
293 | + $command = 'docker-compose'.$preciseFiles.$networking.$networkDriver.$project.' '.$subcommand; |
|
294 | 294 | |
295 | 295 | return $command; |
296 | 296 | } |