@@ -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'; |
@@ -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 | |
@@ -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 | } |