@@ -69,12 +69,12 @@ |
||
| 69 | 69 | ); |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - /** |
|
| 73 | - * Stop service containers |
|
| 74 | - * |
|
| 75 | - * @param mixed $composeFiles The compose files names |
|
| 76 | - * @param string $signal Optionnal to precise SIGNAL to send to the container for SIGKILL replacement. |
|
| 77 | - */ |
|
| 72 | + /** |
|
| 73 | + * Stop service containers |
|
| 74 | + * |
|
| 75 | + * @param mixed $composeFiles The compose files names |
|
| 76 | + * @param string $signal Optionnal to precise SIGNAL to send to the container for SIGKILL replacement. |
|
| 77 | + */ |
|
| 78 | 78 | public function kill($composeFiles = array(), $signal = 'SIGKILL') |
| 79 | 79 | { |
| 80 | 80 | $command = 'kill'; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | $command = 'kill'; |
| 88 | 88 | |
| 89 | 89 | if ($signal !== 'SIGKILL') { |
| 90 | - $command .= ' -s ' . $signal; |
|
| 90 | + $command .= ' -s '.$signal; |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | return $this->processResult( |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | */ |
| 225 | 225 | public function run($service, $command = null, $composeFiles = array()) |
| 226 | 226 | { |
| 227 | - $command = 'run ' . $service . ' ' . $command; |
|
| 227 | + $command = 'run '.$service.' '.$command; |
|
| 228 | 228 | #echo $this->formatCommand($command, $this->createComposeFileCollection($composeFiles)); exit; |
| 229 | 229 | $result = $this->execute( |
| 230 | 230 | $this->formatCommand($command, $this->createComposeFileCollection($composeFiles)) |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | { |
| 275 | 275 | $command = $this->formatCommand('ps', $this->createComposeFileCollection($composeFiles)); |
| 276 | 276 | |
| 277 | - $command = 'for CONTAINER in $(' . $command . ' -q); '; |
|
| 277 | + $command = 'for CONTAINER in $('.$command.' -q); '; |
|
| 278 | 278 | $command .= 'do echo "$(docker inspect --format \' {{ .Name }} \' $CONTAINER)\t'; |
| 279 | 279 | $command .= '$(docker inspect --format \' {{ .NetworkSettings.IPAddress }} \' $CONTAINER)"; done'; |
| 280 | 280 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $this->setFileName($name); |
| 29 | 29 | } else { |
| 30 | 30 | throw new Exception( |
| 31 | - 'Invalid fileName definition "(' . gettype($name) . ') ' . var_export($name, true) . '"' |
|
| 31 | + 'Invalid fileName definition "('.gettype($name).') '.var_export($name, true).'"' |
|
| 32 | 32 | ); |
| 33 | 33 | } |
| 34 | 34 | } |
@@ -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 | } |