@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | $args = func_get_arg(0); |
| 30 | 30 | |
| 31 | 31 | if (!is_array($args)) { |
| 32 | - throw new \Exception('Invalid parameter "(' . gettype($args) . ')'); |
|
| 32 | + throw new \Exception('Invalid parameter "('.gettype($args).')'); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | foreach ($args as $composeFile) { |
@@ -39,12 +39,12 @@ discard block |
||
| 39 | 39 | $this->add(new ComposeFile($composeFile)); |
| 40 | 40 | } else { |
| 41 | 41 | throw new \Exception( |
| 42 | - 'Invalid composeFile definition "(' . gettype( |
|
| 42 | + 'Invalid composeFile definition "('.gettype( |
|
| 43 | 43 | $composeFile |
| 44 | - ) . ') ' . var_export( |
|
| 44 | + ).') '.var_export( |
|
| 45 | 45 | $composeFile, |
| 46 | 46 | true |
| 47 | - ) . '"' |
|
| 47 | + ).'"' |
|
| 48 | 48 | ); |
| 49 | 49 | } |
| 50 | 50 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $command = 'kill'; |
| 78 | 78 | |
| 79 | 79 | if ($signal !== 'SIGKILL') { |
| 80 | - $command .= ' -s ' . $signal; |
|
| 80 | + $command .= ' -s '.$signal; |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | return $this->processResult( |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | */ |
| 166 | 166 | public function run($service, $command, $composeFiles = array()) |
| 167 | 167 | { |
| 168 | - $command = 'run --rm ' . $service . ' ' . $command; |
|
| 168 | + $command = 'run --rm '.$service.' '.$command; |
|
| 169 | 169 | $result = $this->execute( |
| 170 | 170 | $this->formatCommand($command, $this->createComposeFileCollection($composeFiles)) |
| 171 | 171 | ); |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | { |
| 201 | 201 | $command = $this->formatCommand('ps', $this->createComposeFileCollection($composeFiles)); |
| 202 | 202 | |
| 203 | - $command = 'for CONTAINER in $(' . $command . ' -q); '; |
|
| 203 | + $command = 'for CONTAINER in $('.$command.' -q); '; |
|
| 204 | 204 | $command .= 'do echo "$(docker inspect --format \' {{ .Name }} \' $CONTAINER)\t'; |
| 205 | 205 | $command .= '$(docker inspect --format \' {{ .NetworkSettings.IPAddress }} \' $CONTAINER)"; done'; |
| 206 | 206 | |